I have noticed that when I use the HiveMQ browser client and try to publish to a topic which the username and password is not authorised - the browser client immediately disconnects. This is using MQTT 3.1.
But if I try to use NodeJS client I have no way of detecting publish has failed. I am using protocol version 3.1.1. Is there a way to detect publish fail using the NodeJS client ?
If I use protocol version 5 then I can get a call back with with error. But for 3.1 and 3.1.1 this is not working.