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

manually close socket when window is unloaded #181

Merged
merged 2 commits into from
Nov 21, 2023
Merged

Conversation

AlecM33
Copy link
Owner

@AlecM33 AlecM33 commented Nov 21, 2023

we were not closing the connection when the window is unloaded. This could lead to behavior in certain browsers where, if we use back/forward navigation, a cached page is served and the socket connection is not immediately restored. There's no visual feedback this has occurred - socket events will just hang indefinitely until eventually the disconnect is detected and the client reconnects.

@AlecM33 AlecM33 merged commit b6e22b9 into master Nov 21, 2023
3 checks passed
@AlecM33 AlecM33 deleted the close-on-unload branch November 21, 2023 02:13
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