# File lib/pusher-client/socket.rb, line 109
    def unsubscribe(channel_name)
      channel = @channels.remove channel_name
      if channel && @connected
        send_event('pusher:unsubscribe', {
          'channel' => channel_name
        })
      end
      return channel
    end