why deepstreamHub? compare us getting started faq
use cases
products
developers
company
blog contact

Listener for any rpc requests recieved from the server

Methods

onRPCRequested(name,data,response)

void onRPCRequested(String rpcName, Object data, RpcResponse response)
argument type description
rpcName String The name of the rpc being requested
data Object The data the request was made with-
response RpcResponse The RpcResponse to respond to the request with

This listener will be invoked whenever the client recieves an rpc request from the server, and will be able to respond via RpcResponse.send(data) or RpcResponse.reject()