Class: Isono::NodeModules::RpcChannel::OneshotResponseContext

Inherits:
ResponseContext
  • Object
show all
Defined in:
lib/isono/node_modules/rpc_channel.rb

Overview

Do nothing when the endpoint trys to send back in case of oneshot request.

Instance Attribute Summary

Attributes inherited from ResponseContext

#header

Instance Method Summary collapse

Methods inherited from ResponseContext

#initialize, #responded?

Constructor Details

This class inherits a constructor from Isono::NodeModules::RpcChannel::ResponseContext

Instance Method Details

#progress(ret) ⇒ Object



327
328
# File 'lib/isono/node_modules/rpc_channel.rb', line 327

def progress(ret)
end

#response(ret) ⇒ Object



330
331
332
333
334
335
336
337
# File 'lib/isono/node_modules/rpc_channel.rb', line 330

def response(ret)
  raise "" if @responded

  EM.schedule {
    @header.ack
  }
  @responded = true
end