NatsTransportOptions
Defined in: types.ts:37
Options for creating a NATS JetStream-backed pubsub transport.
Properties
Section titled “Properties”connectionOptions?
Section titled “connectionOptions?”
optionalconnectionOptions?:Omit<ConnectionOptions,"servers">
Defined in: types.ts:41
Additional NATS connection options.
defaultSource?
Section titled “defaultSource?”
optionaldefaultSource?:string
Defined in: types.ts:55
Default CloudEvent source for publishers using this transport.
interceptors?
Section titled “interceptors?”
optionalinterceptors?:PubSubInterceptor[]
Defined in: types.ts:57
Optional interceptors for transport operations.
publishTimeoutMs?
Section titled “publishTimeoutMs?”
optionalpublishTimeoutMs?:number
Defined in: types.ts:53
Optional timeout for JetStream publish acknowledgements in milliseconds.
scheduler?
Section titled “scheduler?”
optionalscheduler?:PubSubScheduler
Defined in: types.ts:51
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.
servers?
Section titled “servers?”
optionalservers?:string|string[]
Defined in: types.ts:39
NATS server URLs passed to the client.
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: types.ts:59
Optional signal that closes this transport when aborted.
stream
Section titled “stream”stream:
NatsEventStreamOptions
Defined in: types.ts:43
Event stream configuration for normal publishes and subscribes.