Class: Wamp::Manager::Connection
- Inherits:
-
Connection::Base
- Object
- Connection::Base
- Wamp::Manager::Connection
- Defined in:
- lib/wamp/manager/connection.rb
Overview
connection
Instance Attribute Summary collapse
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Connection
constructor
A new instance of Connection.
- #on_message(data) ⇒ Object
- #on_open ⇒ Object
Constructor Details
#initialize(*args) ⇒ Connection
Returns a new instance of Connection.
9 10 11 12 |
# File 'lib/wamp/manager/connection.rb', line 9 def initialize(*args) super @session = Session.new(self) end |
Instance Attribute Details
#session ⇒ Object (readonly)
Returns the value of attribute session.
7 8 9 |
# File 'lib/wamp/manager/connection.rb', line 7 def session @session end |
Instance Method Details
#on_message(data) ⇒ Object
14 15 16 17 |
# File 'lib/wamp/manager/connection.rb', line 14 def (data) = Message.resolve(coder.decode(data)) session.() end |
#on_open ⇒ Object
19 20 21 |
# File 'lib/wamp/manager/connection.rb', line 19 def on_open end |