code: def subscribe(self, client, channel_name):
          
          if channel_name not in self.channels:
              self.channels[channel_name] = channel = Channel(channel_name)
              channel.start()
  
          self.channels[channel_name].subscribe(client)
docs: Register a new client to receive messages on a channel.