Skip to content

attempt close and reconnect for all stopped/disconnected states #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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

erquhart
Copy link
Contributor

Code execution in inactive browser tabs is sporadic and unreliable. The remaining race conditions I've observed in long running tabs have to do with delayed settimeouts and scheduled reconnects clobbering each other, resulting in unexpected websocket state transitions, and ultimately false unauth states.

This change allows stopped and disconnected states, which can happen unexpectedly and lead to a false unauth state, to at least attempt reconnect.

I've been running this for weeks and saw no remaining race conditions and no logouts, but made some slight changes for this PR, so opening as draft for now.

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

Successfully merging this pull request may close these issues.

1 participant