Creates an instance of SyncedStorage.
The identifier for the room, used to segregate data within the server.
The URL of the WebSocket server.
Private docPrivate providerPrivate roomThe identifier for the room, used to segregate data within the server.
Private storageConnects to or retrieves a named storage instance.
Unique identifier for the storage instance.
The initial state to be used for this storage if it's being created.
An instance of Storage.
Generated using TypeDoc
The SyncedStorage class manages the creation and synchronization of multiple storage instances over a WebSocket connection using Y.js and y-websocket.