Class: Atoms::Connection
- Inherits:
-
Cool.io::TCPSocket
- Object
- Cool.io::TCPSocket
- Atoms::Connection
- Defined in:
- lib/atoms.rb
Instance Method Summary collapse
Instance Method Details
#on_close ⇒ Object
132 133 134 135 |
# File 'lib/atoms.rb', line 132 def on_close #puts "#{remote_addr}:#{remote_port} disconnected" #todo - destroy session end |
#on_connect ⇒ Object
127 128 129 130 |
# File 'lib/atoms.rb', line 127 def on_connect #puts "#{remote_addr}:#{remote_port} connected" # todo - create a session end |