Skip to content

RabbitMqTransportOptions

Options for creating a RabbitMQ-backed pubsub transport.

optional defaultSource?: string

Default CloudEvent source for publishers using this transport.


optional exchange?: string

Durable topic exchange used for normal event delivery. Defaults to protoutil.pubsub.


optional interceptors?: PubSubInterceptor[]

Optional interceptors for transport operations.


optional publishTimeoutMs?: number

Optional timeout for broker publish confirms in milliseconds.


optional queuePrefix?: string

Durable queue prefix used for subscription queues. Defaults to protoutil.pubsub.queue.


optional scheduler?: PubSubScheduler

Optional scheduler used for durable notBefore publish and delayed retry.

Immediate publish/subscribe does not require a scheduler. If a publish call provides notBefore, or a handler returns ctx.retry({ delay }), the transport throws unless a scheduler was supplied.


optional signal?: AbortSignal

Optional signal that closes this transport when aborted.


url: string

AMQP connection URL.