Open psummo opened 6 years ago
I would recommend to use http://npm.im/aedes http://npm.im/aedes-persistence-mongodb http://npm.im/mqemitter-mongodb.
It's the "new" mosca?
Yes. Il giorno mar 12 dic 2017 alle 12:25 Pierluigi Summo < notifications@github.com> ha scritto:
It's the "new" mosca?
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/mcollina/mosca/issues/710#issuecomment-351023813, or mute the thread https://github.com/notifications/unsubscribe-auth/AADL42YHReJJ_W_fkwnSejlnNJfkQb3Gks5s_mK3gaJpZM4Q-yRP .
I replace mosca with aedes but there's not a clear example for persistence and I have the same problem with offline message.
I have this simply backend for a chat in my app.
And I Publish and Subscribe from Client with QoS 1.
The problem is: On reconnect, client recive all message, also message that was already recived when client was online. Example CLIENT A & CLIENT B ONLINE CLIENT A --> SEND MESSAGE 1--> CLIENT A/B REVICE MESSAGE 1 CLIENT B --> DISCONNECT CLIENT A--> SEND MESSAGE 2--> CLIENT A REVICE MESSAGE 2 CLIENT B --> RE CONNECT --> CLIENT B RECIVE MESSAGE 1/2 But client B should recive only MESSAGE 2: correct?