Methods
init:client:rpcName:uid:callback:
An RPC represents a single remote procedure Request made from the client to the server. It’s main function is to encapsulate the logic around timeouts and to convert the incoming response data
- Parameters:
deepstreamConfig
- The deepstreamConfig the client was created withclient
- The deepstream clientrpcName
- The rpc nameuid
- The unique RPC identifiercallback
- The callb ack when an RPC has been completed
ack
Called once an ack message is received from the server.
error:err:
Callb ack for error messages received from the server. Once an error is received the request is considered completed. Even if a response arrives later on it will be ignored / cause an UNSOLICITED_MESSAGE error
- Parameters:
rpcName
- The rpc nameerr
- The error Message received from the server
respond:data:
Called once a response message is received from the server. Converts the typed data and completes the request.
- Parameters:
rpcName
- The rpc namedata
- The data received from the server