Skip to content

addTransport

addTransport(transport, options?): () => void

Defined in: packages/postal/src/transport.ts:214

Registers a transport with postal.

The transport will receive outbound envelopes (filtered by options) and can inject inbound envelopes into the local bus. Returns a function that removes this transport.

Transport

The transport to register

TransportOptions

Optional filter configuration

A remove function (idempotent)

(): void

void