Module: EM::RemoteCall::ClientConnection
- Includes:
- JsonConnection::Client
- Defined in:
- lib/em_remote_call/client.rb
Instance Method Summary collapse
Instance Method Details
#json_parsed(hash) ⇒ Object
60 61 62 63 64 65 66 |
# File 'lib/em_remote_call/client.rb', line 60 def json_parsed(hash) puts "From server: #{hash}" if hash[:debug] deffr = EM::RemoteCall::Deferrable.find hash[:deferrable_id] deffr.succeed hash[:success] if hash.has_key? :success deffr.fail hash[:error] if hash.has_key? :error end |