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

fix: collab room initialization #4882

Merged
merged 1 commit into from Mar 6, 2022
Merged

fix: collab room initialization #4882

merged 1 commit into from Mar 6, 2022

Conversation

dwelle
Copy link
Member

@dwelle dwelle commented Mar 6, 2022

When another client connects to an existing room, we were awaiting firebase data which caused socket subscriptions to be delayed, in particular the SCENE_INIT which resulted in the portal not being initialized and falling back on the 5sec timeout.

This PR makes sure the firebase data are fetched only when first in the room (or on fallback).

@dwelle dwelle requested a review from maielo March 6, 2022 12:12
@vercel
Copy link

vercel bot commented Mar 6, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

excalidraw – ./

🔍 Inspect: https://vercel.com/excalidraw/excalidraw/2VbTrNXaBpQu2A57i6McgYwCdc9d
✅ Preview: https://excalidraw-git-collabrewrite-excalidraw.vercel.app

excalidraw-package-example – ./src/packages/excalidraw

🔍 Inspect: https://vercel.com/excalidraw/excalidraw-package-example/8JZ4z3yoZEzodNNqEcKAviofPch2
✅ Preview: https://excalidraw-package-example-git-collabrewrite-excalidraw.vercel.app

Copy link
Contributor

@maielo maielo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@dwelle dwelle merged commit 9392ec2 into master Mar 6, 2022
@dwelle dwelle deleted the collab_rewrite branch March 6, 2022 14:59
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.

None yet

2 participants