You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NATS support wildcards to filter messages coming in but the way the nest.js wraps the subject withing quotes break the functionally
E.g. this.client.send(foo.bar.baz... gets transform into '"foo.bar.baz"_ack' so
Wildcard Subscriptions
// "" matches any token, at any level of the subject.
nats.subscribe('foo..baz', function(msg, reply, subject) {
console.log('Msg received on [' + subject + '] : ' + msg);
});
nats.subscribe('foo.bar.*', function(msg, reply, subject) {
console.log('Msg received on [' + subject + '] : ' + msg);
});
// ">" matches any length of the tail of a subject, and can only be
// the last token E.g. 'foo.>' will match 'foo.bar', 'foo.bar.baz',
// 'foo.foo.bar.bax.22'
nats.subscribe('foo.>', function(msg, reply, subject) {
console.log('Msg received on [' + subject + '] : ' + msg);
});
The text was updated successfully, but these errors were encountered:
NATS support wildcards to filter messages coming in but the way the nest.js wraps the subject withing quotes break the functionally
E.g. this.client.send(
foo.bar.baz
... gets transform into '"foo.bar.baz"_ack' soWildcard Subscriptions
The text was updated successfully, but these errors were encountered: