code: def pubsub_channels(self, pattern=None):
          
          args = [b'PUBSUB', b'CHANNELS']
          if pattern is not None:
              args.append(pattern)
          return self.execute(*args)
docs: Lists the currently active channels.