OptionalclientInjected NATS connection.
OptionaldefaultShared queue-less group prefix; the group is <defaultQueue>.<topic>.
A newly created group starts at new messages; later subscribers resume it.
OptionalheadersFactory for NATS headers when an application injects the connection.
OptionalloggerOptional logger for error reporting.
OptionalpublishPublish acknowledgement bound in ms, from 0 through 2147483647. Zero disables the bound; an expired publish may still be delivered. Consumer reads are unaffected.
OptionalreconnectLazy connection reconnect policy. Defaults: maxAttempts -1 (forever), waitMs 2000. maxAttempts must be an integer >= -1; waitMs an integer 1–2147483647. Invalid values throw RangeError at construction; an injected client with this option throws TypeError. Exhausting a finite budget closes the connection and health stays down.
OptionalstreamJetStream stream name (default: 'MESSAGING').
OptionalstreamSubjects the broker may create the stream with when it is absent (X28-2).
No default: with the stream absent and this unset, connect() throws
JetStreamStreamError naming both remedies. See
NatsMessagingOptions.streamSubjects for the full behavior.
OptionalurlNATS connection URL(s).
NATS-specific options (internal use).
Since
0.1.0