Constructs an instance of TlDrawSyncedStorage.
The identifier for the room, used for data segregation.
The initial state to populate the storage with.
The URL of the WebSocket server.
Gets the WebSocket provider associated with this storage.
The WebsocketProvider instance.
Deletes parts of the state based on the provided newState object.
The state changes to apply, specifying the keys to delete.
Initializes the storage with the provided initial state.
The initial state to set.
Registers a callback to be called when the state changes.
The function to be called with the changes and transaction when the state changes.
Unregisters a callback from being called when the state changes.
The callback function to unregister.
Sets the state based on the provided newState object.
The new state to apply.
Generated using TypeDoc
The TlDrawSyncedStorage class manages synchronized storage for drawing states using Y.js and y-websocket.