Module: Wamp::Client::Message
- Defined in:
- lib/wamp/client/message.rb
Defined Under Namespace
Modules: Types Classes: Abort, Authenticate, Base, Call, Cancel, Challenge, Error, Event, Goodbye, Hello, Interrupt, Invocation, Publish, Published, Register, Registered, Result, Subscribe, Subscribed, Unregister, Unregistered, Unsubscribe, Unsubscribed, Welcome, Yield
Constant Summary collapse
- TYPE_LOOKUP =
{ Types::HELLO => Hello, Types::WELCOME => Welcome, Types::ABORT => Abort, Types::CHALLENGE => Challenge, Types::AUTHENTICATE => Authenticate, Types::GOODBYE => Goodbye, Types::ERROR => Error, Types::PUBLISH => Publish, Types::PUBLISHED => Published, Types::SUBSCRIBE => Subscribe, Types::SUBSCRIBED => Subscribed, Types::UNSUBSCRIBE => Unsubscribe, Types::UNSUBSCRIBED => Unsubscribed, Types::EVENT => Event, Types::CALL => Call, Types::CANCEL => Cancel, Types::RESULT => Result, Types::REGISTER => Register, Types::REGISTERED => Registered, Types::UNREGISTER => Unregister, Types::UNREGISTERED => Unregistered, Types::INVOCATION => Invocation, Types::INTERRUPT => Interrupt, Types::YIELD => Yield, }
Class Method Summary collapse
Class Method Details
.parse(params) ⇒ Object
1297 1298 1299 1300 |
# File 'lib/wamp/client/message.rb', line 1297 def self.parse(params) klass = TYPE_LOOKUP[params[0]] klass ? klass.parse(params.clone) : nil end |