-
Notifications
You must be signed in to change notification settings - Fork 105
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
on internet reconnect, centriguge-js take approx 1 min for reconnection to centrifuge server #203
Comments
Hello, It can take up to 35 secs in default configuration (25 secs for ping wait, additional 10 secs coming from default maxPingDelay), can you provide steps to reproduce 1 min? Also, please describe which environment and client/server versions you are using? As I am talking about latest versions while you could use old version of centrifuge-js and Centrifugo/Centrifuge. As a workaround for a long time to reconnect it's possible to use online/offline events https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine - and disconnect/connect upon receiving them. Seems we should rely on those events in |
server : ubuntu 20.04 function reconnect() window.addEventListener('offline', (e) => { console.log('offline'); }); after above implementation, no luck |
Still actual |
Tried this locally – this causes reconnect for me upon getting |
@paliwalsam hello, I believe that #204 should make things much better, but I still confused why it did not help in your case. |
#204 is a part of centrifuge-js 3.1.0 |
Hii,
when client internet connection change, centriguge-js take approx 1 min for reconnection to centrifuge server,
i am using websocket transport system,following configuration does not provide any help
minReconnectDelay:50,
maxReconnectDelay:100,
maxServerPingDelay:100,
The text was updated successfully, but these errors were encountered: