def METHOD_NAME(self, channels, subscribers, mtype):
    for channel in channels:
        subs = subscribers[channel]
        if self not in subs:
            subs.add(self)
            self._pubsub += 1
        msg = [mtype, channel, self._pubsub]
        self.put_response(msg)
    return NoResponse()