-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Proposal: Add a Method to Reset Reconnect State in Centrifugo Client #106
Comments
Thanks for the suggestion @shalom-aviv ! Yep, it's important to have, in centrifuge-js we already react on browser's online/offline events so the connection is quickly re-established upon going online, but other SDKs do not provide hooks for this. Generally, I am thinking now whether we need a separate method for that, or maybe can have this logic directly in The downside of having it directly in the
In this perspective having a separate method to WDYT? |
I agree that adding logic directly into the A separate
Here’s how the method could be described:
|
Yep, I agree – decoupled method seems preferable. Please feel free to send PR, or I may address this a bit later – currently mostly spending available time on Centrifugo v6. |
Are there any announcements or details available about Centrifugo v6? Will there be breaking changes, and how compatible will v6 be with v5? |
Take a look at centrifugal/centrifugo#832, also sharing updates in Telegram group (https://centrifugal.dev/docs/getting-started/community), from client protocol/SDK perspective I believe it should be fully compatible. |
Many thanks @shalom-aviv for an awesome improvement! Released in https://github.com/centrifugal/centrifuge-swift/releases/tag/0.7.4 |
Description:
Currently, the Centrifugo client uses an exponential backoff strategy for reconnecting after a disconnection. While this approach is generally effective, it can lead to a suboptimal scenario where:
This situation results in unnecessary delays in reestablishing the connection, even though the network is ready.
Proposed Solutions:
Example of the proposed method:
Benefits:
The text was updated successfully, but these errors were encountered: