yorkie-team / yorkie

Yorkie is a document store for collaborative applications.
https://yorkie.dev
Apache License 2.0
776 stars 143 forks source link

Add interface to stop synchronization while maintaining realtime sync #820

Closed hackerwins closed 2 months ago

hackerwins commented 6 months ago

What would you like to be added:

Currently, Yorkie has the following synchronization modes:

A. Manual Sync

await client.attach(doc, { isRealtimeSync: false });

B. Realtime Sync

await client.attach(doc, {
  initialPresence: { color: 'blue', cursor: { x: 0, y: 0 } },
  isRealtimeSync: true,
});

Refer to

Additionally, there is a need for a mode where the user can maintain Realtime Sync(register Presence) but neither send nor receive local changes from other clients.

hackerwins commented 4 months ago