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

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 with
client - The deepstream client
rpcName - The rpc name
uid - The unique RPC identifier
callback - 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 name
err - 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 name
data - The data received from the server