How to manually forward messages to subscribers? #807
Unanswered
antonlovric
asked this question in
Q&A
Replies: 1 comment 2 replies
-
This is not really how a broker should work, I mean you should allow broker itself to forward messages as they arrive. BTW you may be looking for: https://github.com/moscajs/aedes/blob/main/docs/Aedes.md#handler-authorizeforward-client-packet. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I created my MQTT broker in Express JS. My approach was to start a broker, listen to messages published by clients, process them and then forward them to the clients.
Issue is, because of my approach clients receive two messages. One is the message I published manually, one is (at least how I understand it) forwarded by Aedes from publisher to all other subscribers. Is there a way to stop Aedes from automatically forwarding the message so I can send them out manually?
This is my current setup, and basically the way I understood this library when starting out with this project. Is there something I misunderstood?
Beta Was this translation helpful? Give feedback.
All reactions