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

connectionTimeout not work #638

Open
shadowmas opened this issue Sep 15, 2024 · 0 comments
Open

connectionTimeout not work #638

shadowmas opened this issue Sep 15, 2024 · 0 comments

Comments

@shadowmas
Copy link

After the WebSocket service stops, I want to stop reconnecting after a certain period of time.

I found connectionTimeout, but I noticed that connectionTimeout is not effective.

I found that at line 440 in client.ts, this.forceDisconnect() is called.

this.forceDisconnect();

However, in onWebSocketClose (line 486 in client.ts)

 this._stompHandler = undefined; // a new one will be created in case of a reconnect

This causes this.forceDisconnect() to not achieve the desired effect.

Version 7.0.0

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

1 participant