-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: socket io namespace message broadcast
- Loading branch information
sdfs
committed
Oct 27, 2020
1 parent
5e0ee3e
commit ab3c36a
Showing
1 changed file
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
although do filter here, but the automerge connection still keep those unrelated doc's clock. even after those unrelated doc removed due to disconnect of all that doc's users, once any one of such doc users reconnect, the doc re-inited, but with a new empty clock, which conflict with here cached clock in connection._ourClock. then cause the "old state" error in every setDoc call's callback handler, which will cause those re-inited doc stop sync, user can only refresh to get new content, no cursors, no realtime update anymore if that happen (re-init a doc + another doc keep connected). no idea how to fix this, created issue on automerge: automerge/automerge#303