Connection object

The exposed RPC methods of provided services in Node.js programs have access to their connection object. The connection object is passed as an argument in the exposed RPC methods. See the RPC Basics section for more information about the arguments RPC methods must define.

function setTemperature(degrees, unit)
  var connObj = arguments[arguments.length - 1];

The connection object:

isSecure: boolean,
requestId: string,
connectionId: string
Name Description
isSecure The value is true if the RPC request was over a secure connection and false if it was not.
requestId The JSON-RPC request object id. Every method call has a unique requestId.
connectionId The unique id of the underlying connection of the provided services.
copyright © 2014