(self, channel_name)
Unsubscribe from a channel

    :param channel_name: The name of the channel to unsubscribe from.
    :type channel_name: str
Unsubscribe from a channel
Unsubscribe from a channel
def unsubscribe(self, channel_name):
    """Unsubscribe from a channel

    :param channel_name: The name of the channel to unsubscribe from.
    :type channel_name: str
    """
    if channel_name in self.channels:
      self.connection.send_event(
        'pusher:unsubscribe', {
          'channel': channel_name,
          }
      )
      del self.channels[channel_name]
def unsubscribe ( self , channel_name ) : if channel_name in self . channels : self . connection . send_event ( 'pusher:unsubscribe' , { 'channel' : channel_name , } ) del self . channels [ channel_name ]