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

Queue up sync step #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Queue up sync step #15

wants to merge 2 commits into from

Conversation

galaxian85
Copy link
Collaborator

把原本 namespace on connection 時的 getDoc 包成 promise 放進 syncQueue 裡面
syncQueue 一次消化完一個 promise 才會繼續執行下一個

同時 client 本來 on connection 會自動 emit sync-step-1
現在也推遲到 server ready 了才會開始 sync

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