Methods

Class Index [+]

Quicksearch

MessagePack::RPC::MessageReceiver

Public Instance Methods

on_message(msg, *ctx) click to toggle source
    # File lib/msgpack/rpc/transport/base.rb, line 23
23:         def on_message(msg, *ctx)
24:                 case msg[0]
25:                 when REQUEST
26:                         on_request(msg[1], msg[2], msg[3], *ctx)
27:                 when RESPONSE
28:                         on_response(msg[1], msg[2], msg[3], *ctx)
29:                 when NOTIFY
30:                         on_notify(msg[1], msg[2], *ctx)
31:                 else
32:                         raise RPCError.new("unknown message type #{msg[0]}")
33:                 end
34:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.