Connectum API Reference / @connectum/events-nats / types / NatsAdapterOptions
Interface: NatsAdapterOptions
Defined in: types.ts:12
Options for creating a NATS JetStream adapter.
Properties
connectionOptions?
readonlyoptionalconnectionOptions:Partial<NodeConnectionOptions>
Defined in: types.ts:32
NATS connection options (escape hatch for advanced config).
The servers field from this object is overridden by the top-level servers option.
consumerOptions?
readonlyoptionalconsumerOptions:NatsConsumerOptions
Defined in: types.ts:35
JetStream consumer tuning options.
servers
readonlyservers:string|string[]
Defined in: types.ts:14
NATS server URL(s). Accepts a single string or an array.
stream?
readonlyoptionalstream:string
Defined in: types.ts:24
JetStream stream name.
When set, subjects are prefixed with {stream}. and the stream is auto-created on connect() if it does not exist.
Default
"events"