Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emitter Publisher-Subscriber Matrix #8

Closed
omidkrad opened this issue May 22, 2017 · 4 comments
Closed

Emitter Publisher-Subscriber Matrix #8

omidkrad opened this issue May 22, 2017 · 4 comments

Comments

@omidkrad
Copy link

omidkrad commented May 22, 2017

Hi, I put together this Publisher-Subscriber Matrix to better understand how subscriptions and filtering work in Emitter.

First column is channel to publish to
First row is channel that subscriber is listening to
✔️ Subscriber will receive the message
❌ Subscriber won't receive the message

Publish to ⬇️ / Subscriber ➡️ C C/A C/+ C/A/B C/+/B C/D
C ✔️
C/A ✔️ ✔️ ✔️
C/A/B ✔️ ✔️ ✔️ ✔️
C/D ✔️ ✔️ ✔️
C/D/B ✔️ ✔️ ✔️

Can you please verify if this is correct? It would be very helpful if we can add something like this to the documentation. Thanks!

@VladimirAkopyan
Copy link

VladimirAkopyan commented May 22, 2017

are you just trying to figure out how MQTT topics work, or something specific to emitter? This diagram is very confusing .
If you are trying to get general understanding of topics, I think this is a good guide - http://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices

@omidkrad
Copy link
Author

Thanks for the link, it was useful. I added a legend to the table above to make it more clear.

@VladimirAkopyan
Copy link

That seems correct to me

@kelindar
Copy link
Contributor

@omidkrad thanks for the suggestion, added here: https://emitter.io/develop/message-filtering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants