-
Notifications
You must be signed in to change notification settings - Fork 3
Collaboration
Lily Howan edited this page Oct 23, 2022
·
4 revisions
Yjs is a shared editing framework. It exposes Shared Types that can be manipulated like any other data type but are also synced automatically.
This is the provider used to connect users editing a note. Due to the serverless environment, a WebSocket connection will not work, meaning a third-party connection handler will be needed if WebRTC is undesirable. A room-name, ydoc and an optional password are required to create the connection. All users within the same room and ydoc will be connected to each other over an encrypted peer connection.
Y.Doc() is a shared CRDT strategy which handles all user updates.