Skip to content

API reference / @chanx-js/client / core / withEnvelope

Function: withEnvelope() ​

ts
function withEnvelope(message, envelope): Record<string, unknown>;

Defined in: packages/protocol/src/envelope.ts:66

Parameters ​

ParameterType
messageobject
envelope{ ref?: string; seq?: number; topic?: string; }
envelope.ref?string
envelope.seq?number
envelope.topic?string

Returns ​

Record<string, unknown>

MIT licensed