ObjectProtocol allows for easy communication using marshaled ruby objects
module RubyServer
include EM::P::ObjectProtocol
def receive_object obj
send_object({'you said' => obj})
end
end
Invoked with ruby objects received over the network
# File lib/em/protocols/object_protocol.rb, line 34
34: def receive_object obj
35: # stub
36: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.