You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TodoMVC Example](https://github.com/yorkie-team/yorkie-react-todomvc) is a realtime collaborative [TodoMVC](https://todomvc.com/) example using [CreateReactApp](https://reactjs.org/docs/create-a-new-react-app.html) and [Yorkie JS SDK](https://github.com/yorkie-team/yorkie-js-sdk).
Client `c1` deletes `"b"`, which is recorded as a change with logical timestamp `3`. The text node of `"b"` can be referenced by remote, so it is only marked as tombstone. And the client `c1` sends change `3` to server through PushPull API and receives as a response that `min_synced_seq` is `2`. Since all clients did not receive the deletion `change 3`, the text node is not purged by garbage collection.
42
+
Client `c1` deletes `"b"`, which is recorded as a change with logical timestamp `3`. The text node of `"b"` can be referenced
43
+
by remote, so it is only marked as tombstone. And the client `c1` sends change `3` to server through PushPull API and receives
44
+
as a response that `min_synced_seq` is `2`. Since all clients did not receive the deletion `change 3`, the text node is not
45
+
purged by garbage collection.
31
46
32
47
Meanwhile, client `c2` inserts `"c"` after textnode `"b"`.
Client `c2` pushes change `4` to server and receives as a response that `min_synced_seq` is `3`. After the client applies change `4`, the contents of document are changed to `ac`. This time, all clients have received change `3`, so textnode `"b"` is completely removed.
Copy file name to clipboardexpand all lines: docs/tasks/peer-awareness.mdx
+7-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,13 @@ order: 53
7
7
8
8
Peer Awareness is a feature often required in collaborative applications. With Peer Awareness, we can display information such as names and colors of peers who are editing a Document together in the application. Example of Peer Awareness in [CodePair](https://codepair.yorkie.dev/):
0 commit comments