Replies: 1 comment 1 reply
-
In order to do that you should use Check: https://www.hivemq.com/blog/mqtt-essentials-part-7-persistent-session-queuing-messages/ Be aware that sometimes what you need is just retained messages and not all messages but I dunno your use case. Using clean true could lead to some issues on broker db expecially if you have lot of clients using clean true with id that changes frequently and nothing that clears offline messages on broker db. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a frontend that subscribes to a topic and listens to messages, in my use-case I establish the connection when the component is shown and end it when it is unloaded. But when the component is reloaded and connect and subscribe happens again, I do not get the components from the queue which were pushed while I was not connected. I only get messages when I am connected. Below is the code from my service:
I have set QoS to 1 on the publisher side as well, I don't know what I am doing wrong, any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions