Added a simple example to help understanding the sync protocol#458
Added a simple example to help understanding the sync protocol#458FelixSelter wants to merge 4 commits intoautomerge:mainfrom
Conversation
|
Hi @FelixSelter, thanks for writing this up. I think the code example is not quite correct though. If I read it correctly, you're taking a message from |
|
I will correct that. Strange it actually worked for me with multiple peers |
|
@ept Can you please have a look at it again. It still seems wrong. However if peer1 calls sync again without changing anything it will send out changes to peer2 which also applies them. |
|
Thanks for doing this @FelixSelter - this is super helpful to understand the protocol with implementation details. |
…rn/javascript/examples/create-react-app/loader-utils-2.0.4 Bump loader-utils from 2.0.2 to 2.0.4 in /javascript/examples/create-react-app
I added a simple example of two peers connecting and syncing a document.
This should make things more clear and avoid issues like this one #437
Previously you had to investigate the tests to understand this correctly
I hope this helps.
Great work you all