INDEX

Any callRpc()

Call a RPC method via the connection the instance of this class has. This class has two overloads.

  1. callRpc(DOMString method, Array params[, Object context, Function callback, DOMString connectionId])
  2. callRpc(DOMString Array methods, Array params[, Object context, Function callback, DOMString connectionId])
Parameter Description
method A method name the remote end has exposed.
methods An array of method names the remote end has exposed.
params The parameters an exposed method takes.
context The context of the caller.
listener User defined callback function that is called after the response from the call returns.
connectionId An id of a connection.

The difference between the overloads is the ability to make either a single or a batch request. See the RPC Basics section for more information about RPC requests and responses.

Close
copyright © Spaceify.org 2014