You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question, is there a way to tell if max attempts are reached and it will no longer reconnect? Something like ws.isExhausted or ws.doneTrying? We have HTTP failover in our apps and I would like to only failover after Sockette is exhausted.
If there isn't such a flag I'd be glad to PR.
Cheers
The text was updated successfully, but these errors were encountered:
alshakero
changed the title
Is there a way to tell if reconnections trials are over?
Is there a way to tell if reconnection attempts are over?
Feb 12, 2018
Good call -- are you looking for a callback or would a ws.* property be enough? I would think that a callback fits more inline with the rest & is easier to control.
Hi! I loved your lib right away!
I have a question, is there a way to tell if max attempts are reached and it will no longer reconnect? Something like
ws.isExhausted
orws.doneTrying
? We have HTTP failover in our apps and I would like to only failover after Sockette is exhausted.If there isn't such a flag I'd be glad to PR.
Cheers
The text was updated successfully, but these errors were encountered: