taoqf / MQTT.js

The MQTT client for Node.js and the browser
Other
12 stars 8 forks source link

Always close event called when connected using mqtt protocol #4

Open manikandasankar opened 4 years ago

manikandasankar commented 4 years ago

Whenever tires to connect to a server by mqtt protocol, close event is emitted before getting connected. But works fine with ws/wss protocol.

const mqtt = require('@taoqf/react-native-mqtt') const client = mqtt.connect('mqtt://XXX.XXX.XXX.XXX:1883);

Example: const client = mqtt.connect('mqtt://test.mosquitto.org:1883');

taoqf commented 4 years ago

Thanks for report, I will check if i have time. pr is welcomed.

jackdewhurst commented 4 years ago

I get the same issue with every protocol, wss and mqtt included. Not sure what the issue is?

taoqf commented 4 years ago

I am so sorry that I really have no time to do with this issue. but I will be happy to merge pr to fix this.

kvaghas commented 4 years ago

Any updates on this one?

taoqf commented 4 years ago

pr is welcomed.

rkostrab commented 8 months ago

After 3 years... this is still happening.