crdt-example-app
crdt-example-app copied to clipboard
The order of the added messages is different in 2 application instances
The sync doesn't work correctly for this case:
- opened this application in 2 different browser tabs.
- typed and submitted
h1
in the right tab - 1st snapshot - typed and submitted
h2
in the left tab - 1st snapshot (both messages nicely synced in the left tab) - clicked on Sync in the right tab
- the order of the messages is incorrect in the right tab - 2nd snapshot
The sync works nicely if you explicitly press Sync button on every submission. To be more precise, you type message in one tab and press Sync button in the other tab before typing a new message in this other tab.