RpcRequestContext Interface
Interface to enable passing application-specific context with each RPC request.
Properties
Name | Type | Description | |
---|---|---|---|
deserialize | (request: SerializedRpcRequest) => Promise<ClientRequestContext> | Used at backend to deserialize client specified context | |
getId | (request: RpcRequest) => string | Used to get the id of the request at the frontend | |
serialize | (request: RpcRequest) => Promise<SerializedClientRequestContext> | Used at frontend to serialize client specified context |
Defined in
Last Updated: 23 April, 2020