I've got a Flic Hub LR running a module that uses this MQTT client. After a router reboot, the client never reconnected, and every publish failed with Cannot call write after a stream was destroyed.
The client only handles the socket's end event, so when the connection drops without a clean end it stays connected and never emits disconnected. I posted an issue on GitHub with a four line fix (handling close as well): https://github.com/50ButtonsEach/flic-hub-sdk-mqtt-js/issues/4