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