module Faye::Patches

Public Instance Methods

reconnect(&block) click to toggle source
# File lib/faye/patches/client.rb, line 15
def reconnect(&block)
  @reconnect_callback = block
  connect
end
stop!() click to toggle source
# File lib/faye/patches/client.rb, line 4
def stop!
  @state = Faye::Client::DISCONNECTED

  info('Disconnecting ?', @dispatcher.client_id)
  @dispatcher.close
  info('Clearing channel listeners for ?', @dispatcher.client_id)
  @channels = Channel::Set.new
  @response_callbacks = {}
  true
end