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.
Parameters
Section titled “Parameters”transport
Section titled “transport”The transport to register
options?
Section titled “options?”Optional filter configuration
Returns
Section titled “Returns”A remove function (idempotent)
():
void
Returns
Section titled “Returns”void