Skip to content

Conversation

@aricart
Copy link
Member

@aricart aricart commented Oct 9, 2025

watcherPrefix which is used for the creation of watchers and ordered push consumers internally. It is used as the prefix for the subject that will deliver to the push consumer that services a watcher.

jetstream(nc, {watcherPrefix: "hello"}); or await jetstreamManager(nc, {watcherPrefix: "hello"});

@aricart aricart requested review from Jarema and scottf October 9, 2025 15:42
Copy link

@scottf scottf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

constructor(nc: NatsConnection, opts?: JetStreamOptions) {
this.nc = nc as NatsConnectionImpl;
opts = opts || {} as JetStreamOptions;
opts.watcherPrefix = opts.watcherPrefix || this.nc.options.inboxPrefix;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slight leaky, could be in the types that provide object store buckets and key value store buckets?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants