Skip to content

Refactor: Offline Reconnection Grace Period #45

Description

@Pranav00076

Description:
If a user temporarily loses WiFi, their local Yjs state might clash or miss updates when they reconnect.

How to Implement:

  1. IndexedDB Provider: Install and configure y-indexeddb. Bind it to the same Y.Doc as your y-websocket or y-webrtc provider.
  2. Local Persistence: This ensures all changes made offline are immediately written to local storage.
  3. Reconnection Sync: When the WebSocket connection restores, Yjs will automatically compute the state vectors and sync the locally cached offline edits with the remote peers securely.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions