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

Collaboration room refresh disconnect bug #85

Merged
merged 1 commit into from
Oct 28, 2022
Merged

Conversation

tanyjnaaman
Copy link
Contributor

Overview

Closes #78

Bug was due to race conditions between setting state from the backend server and the live socket connection between editors. Specifically, when a user refreshed, we would get the state from the backend, set that in the editor, then open the connection to the other user's editor.

This would cause an error and close the connection.

This has since been fixed by having frontend state be set only if there is 1 user in the room (i.e. no such conflicts occur).

@tanyjnaaman tanyjnaaman changed the title Sorta a fix Collaboration room refresh disconnect bug Oct 28, 2022
@tanyjnaaman tanyjnaaman merged commit 6546a5f into main Oct 28, 2022
@tanyjnaaman tanyjnaaman deleted the nt/fix-collaboration branch October 28, 2022 09:48
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.

User service credentials bug
1 participant