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
| Parameter | Type |
|---|---|
message | object |
envelope | { ref?: string; seq?: number; topic?: string; } |
envelope.ref? | string |
envelope.seq? | number |
envelope.topic? | string |
Returns
Record<string, unknown>