Skip to content

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

Function: withEnvelope() ​

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

Defined in: packages/client/src/core/protocol.ts:63

Parameters ​

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

Returns ​

Record<string, unknown>

MIT licensed