Skip to content

Subscriber topic wildcards #18

@mstoddart

Description

@mstoddart

Hello,

In your documentation for subscribing (http://apidocs.strongloop.com/strong-mq/#sub-subscribepattern-listener), it demonstrates the following:

sub.subscribe('that.*')
.subscribe('this.*')
.on('message', function (msg) { ... });

However, when I attempt the following:

var sub = connection.createSubQueue('modelSavedEvents');
sub.subscribe('testItemSaved.*')
.on('message', function (msg) {
console.log('Subscriber handling 1: ', msg);
});

I encounter the following failure:

AssertionError: Invalid topic "testItemSaved.*". Topic patterns must be .-separated alphanumeric words

Am I missing something in my implementation? Or perhaps this is a bug?

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions