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(_:data:response:)

func onRPCRequested(_ rpcName: String, data: Any, response: RpcResponse) -> Void
argument type description
rpcName String The name of the rpc being requested
data Any 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(_:) or RpcResponse.reject()