Module EventMachine::Protocols::ObjectProtocol
In: lib/em/protocols/object_protocol.rb

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

Methods

Public Instance methods

Invoked with ruby objects received over the network

Sends a ruby object over the network

By default returns Marshal, override to return JSON or YAML, or any other serializer/deserializer responding to dump and load.

[Validate]