- Technical documentation
- API docs
Call a RPC method. This class has two overloads.
- callRpc(DOMString method, Array params[, Object context, Function callback, DOMString connectionId])
- callRpc(DOMString Array methods, Array params[, Object context, Function callback, DOMString connectionId])
|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.