-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Broker Id should be updated when streamed #98
Conversation
I have tested but not fix will problems. I have 1 |
can you send a PR with a broken unit test that reproduces this error? Looking at the code, it seems correct, as the following sentence is not correct:
it uses the client id, not the broker id. |
@mcollina Thanks! |
@nguyenthenguyen @mcollina The old will is not being deleted. That's one issue. |
@nguyenthenguyen I have reverted this change, as it was probably not correct (my bad). Can you please upload a script to reproduce the issue you are facing using MQTT.js or just mqtt-connection? |
@mcollina @GavinDmello Thanks! server.js
client1.js
client2.js
|
@nguyenthenguyen Wills aren't getting deleted because the brokerId is old, so you're getting it on every heartbeat. |
@GavinDmello I think we might update the will ( |
If brokerId is not the same, del the old will and put the new one and then publish ? |
we can just do |
@mcollina Yea. We'll have to pass those brokerIds to |
Related to #96
@mcollina @nguyenthenguyen Please verify