paho.mqtt.javascript icon indicating copy to clipboard operation
paho.mqtt.javascript copied to clipboard

infinite reconect ( calll onConnect )

Open ultrakeypoint opened this issue 1 year ago • 2 comments

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

ultrakeypoint avatar Apr 02 '24 04:04 ultrakeypoint

Hi @ultrakeypoint

Have you been able to resolve this reconnection issue? we are experiencing the same

dshapar-plana avatar Jul 03 '24 21:07 dshapar-plana

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.

INVERSEFIRM / ultrakeypoint

ultrakeypoint avatar Jul 03 '24 22:07 ultrakeypoint