Class: Wamp::MessageHandler::Hello
- Defined in:
- lib/wamp/message_handler/hello.rb
Overview
Hello
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Wamp::MessageHandler::Base
Instance Method Details
#handle ⇒ Object
7 8 9 10 11 |
# File 'lib/wamp/message_handler/hello.rb', line 7 def handle msg, is_welcome = connection.acceptor.receive(connection.serializer.serialize()) connection.transmit msg connection.router.attach_client(connection) if is_welcome end |
#send_message ⇒ Object
13 14 15 |
# File 'lib/wamp/message_handler/hello.rb', line 13 def connection.transmit connection.joiner.send_hello end |