Watch different keys without creating a watcher for each key? #6746
Answered
by
pablitovicente
pablitovicente
asked this question in
Q&A
-
I have a use case on which I need to watch different keys that might not follow a stable pattern like So basically I would like to do something like: natsSDk.watch('foo', 'bar', 'baz') instead of natsSDk.watch('foo')
natsSDk.watch('bar')
natsSDk.watch('baz') |
Beta Was this translation helpful? Give feedback.
Answered by
pablitovicente
Mar 31, 2025
Replies: 1 comment
-
Oh I should have checked https://nats-io.github.io/nats.js/kv/types/KvWatchOptions.html it seems this is already supported... will close after validating. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jnmoyne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh I should have checked https://nats-io.github.io/nats.js/kv/types/KvWatchOptions.html it seems this is already supported... will close after validating.