mroderick / PubSubJS

Dependency free publish/subscribe for JavaScript
MIT License
4.78k stars 459 forks source link

Wildcard support for subscriptions? #221

Closed ali80 closed 2 years ago

ali80 commented 2 years ago

Hi, thanks for great work many pub/sub libs support wildcard subscriptions. simple wildcards like redis: https://redis.io/docs/manual/pubsub/#pattern-matching-subscriptions or more complex ones like: https://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices/

do you have any plans to support this? currently I should implement this myself or use a different pattern for subscriptions

mroderick commented 2 years ago

Does https://github.com/mroderick/PubSubJS#hierarchical-addressing not do what you need?

ali80 commented 2 years ago

Don't know how I missed this, Sorry and many thanks for your awesome work