You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When shutdown is called, I get the following console output:
Shutting down MQTT connection...
Published offline message!
Disconnected from broker!
However, observing the published messages shows "offline" is published (correct) followed by "offline-unexpected"? Why is the LWT sent on normal connection close? I've attached a Wireshark trace.
Try reproduce this with also broker in the same script. You can use Aedes broker for example. Once you reproduce it in a simple script you can also try to do a debug on mqttjs side. The LWT is sent by the broker when he detects an unexpected close of connection by the client (disconnect packet isn't received and ack)
I have the following typescript code, using MQTT.js 4.3.7:
When
shutdown
is called, I get the following console output:However, observing the published messages shows "offline" is published (correct) followed by "offline-unexpected"? Why is the LWT sent on normal connection close? I've attached a Wireshark trace.
mqtt capture.pcapng.zip
The text was updated successfully, but these errors were encountered: