Skip to content

bodhi-realtime-agent / createEnvelope

Function: createEnvelope() ​

createEnvelope<TType, TPayload>(type, payload, to, options?): Envelope<TType, TPayload>

Defined in: src/runtime/envelope.ts:38

Create an envelope with default timestamp.

Type Parameters ​

TType ​

TType extends string

TPayload ​

TPayload

Parameters ​

type ​

TType

payload ​

TPayload

to ​

string

options? ​

causationId? ​

string

correlationId? ​

string

from? ​

string

Returns ​

Envelope<TType, TPayload>

Built with VitePress