Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infinite reconect ( calll onConnect ) #255

Open
ultrakeypoint opened this issue Apr 2, 2024 · 2 comments
Open

infinite reconect ( calll onConnect ) #255

ultrakeypoint opened this issue Apr 2, 2024 · 2 comments

Comments

@ultrakeypoint
Copy link

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

@dshapar-plana
Copy link

Hi @ultrakeypoint

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

@ultrakeypoint
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants