Class: ApplicationCable::Connection
- Inherits:
-
ActionCable::Connection::Base
- Object
- ActionCable::Connection::Base
- ApplicationCable::Connection
- Defined in:
- lib/anyt/dummy/application.rb
Instance Method Summary collapse
Instance Method Details
#connect ⇒ Object
30 31 32 33 |
# File 'lib/anyt/dummy/application.rb', line 30 def connect logger.debug "Connected" Anyt::ConnectHandlers.call(self) end |
#disconnect ⇒ Object
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 |