easternbloc / node-stomp-client

A STOMP client for Node.js
Other
93 stars 47 forks source link

Wildcard subscriptions unsupported #36

Open storkme opened 9 years ago

storkme commented 9 years ago

Hi,

I've noticed that due to the way the client works, wildcard subscriptions are not going to function as expected, e.g. subscribing to /topic/foo.* is never going to get triggered as the destination header will likely be something like /topic/foo.bar and thus won't match any registered callback

Might be worth chucking something into the docs saying it's unsupported.

Cheers.

(disclaimer: only tested against RabbitMQ, other brokers may implement the destination header differently to the way I've described.)