paho.mqtt.javascript
paho.mqtt.javascript copied to clipboard
infinite reconect ( calll onConnect )
I have been using reconnect option below.
const options = {
useSSL: false,
keepAliveInterval: 60,
reconnect: true,
onSuccess: this.onConnect,
};
client.disconnect();
but, our system that is connected to various systems under one name, even if it try to disconnect during duplicate connections, it will continue to try to reconnect.
Is there any way to solve this?
Hi @ultrakeypoint
Have you been able to resolve this reconnection issue? we are experiencing the same
Hi @ultrakeypoint
Have you been able to resolve this reconnection issue? we are experiencing the same
Hi, @dshapar-plana
Yes. It has been resolved. However, the problem was solved by not issuing duplicate keys rather than using the MQTT function.