Skip to main content

Function: isRpcEnvelope()

isRpcEnvelope(value): value is RpcEnvelope

Defined in: Extensions/RpcEnvelope.ts:80

Type guard — narrow an unknown message off the channel into an RpcEnvelope. The router uses this BEFORE touching any field. Anything that fails this guard is dropped with an RpcProtocolError.

Parameters

value

unknown

Returns

value is RpcEnvelope