code: def subscribe(self, socket_id, channel):
          
          con = self._get_connection(socket_id)
          self.subscriptions.setdefault(channel, set()).add(socket_id)
          con.subscriptions.add(channel)
docs: Subscribes a socket to a channel.