eclipse / paho.mqtt.javascript

paho.mqtt.javascript
Other
1.14k stars 468 forks source link

infinite reconect ( calll onConnect ) #255

Open ultrakeypoint opened 3 months ago

ultrakeypoint commented 3 months ago

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?

image