-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh: reply to yjs sync step 1 as the server
The yjs sync protocol has three types of messages: * Sync step 1 (Question) * Sync step 2 (Answer) * Update The different parties will exchange questions and answers to sync. Once all parties are synced they exchange updates containing the latest changes. We used to relay all questions to all parties which resulted in a lot of unneccessary traffic and db entries. Instead only store the answers and updates on the server. Whenever any question comes in reply with the log of all the other messages. This way questions are only answered once (by the server) and we can still stick to a "stupid" server that does not need to understand state vectors and so on. Signed-off-by: Max <max@nextcloud.com>
- Loading branch information
1 parent
1026c37
commit 5f30093
Showing
2 changed files
with
34 additions
and
4 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
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