eclipse-paho / eclipse-paho/paho.mqtt.javascript

infinite reconect ( calll onConnect )

Open
#255 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
466
PR merge metrics
No merged PRs in 30d

Description

I have been using reconnect option below.

```js
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](https://github.com/eclipse/paho.mqtt.javascript/assets/73173310/25a8d173-ea37-431b-a1ec-4c314f40c708)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.