Class: ApplicationCable::Connection

Inherits:
ActionCable::Connection::Base
  • Object
show all
Defined in:
lib/anyt/dummy/application.rb

Instance Method Summary collapse

Instance Method Details

#connectObject



30
31
32
33
# File 'lib/anyt/dummy/application.rb', line 30

def connect
  logger.debug "Connected"
  Anyt::ConnectHandlers.call(self)
end

#disconnectObject



35
36
37
38
39
40
# File 'lib/anyt/dummy/application.rb', line 35

def disconnect
  if DISCONNECT_DELAY > 0
    sleep DISCONNECT_DELAY
  end
  logger.debug "Disconnected"
end