Private
changeIDPrivate
checkpointPrivate
Optional
clonePrivate
eventPrivate
eventhistory
is exposed to the user to manage undo/redo operations.
Private
internalPrivate
isPrivate
keyPrivate
localPrivate
maxPrivate
onlinePrivate
optsPrivate
presencesPrivate
rootPrivate
schemaPrivate
statusapplyChangePack
applies the given change pack into this document.
applyDocEventsForReplay
applies the given events into this document.
applySnapshot
applies the given snapshot into this document.
Optional
snapshot: Uint8ArrayapplyStatus
applies the document status into this document.
broadcast
the payload to the given topic.
Optional
options: BroadcastOptionsPrivate
executegarbageCollect
purges elements that were removed before the given time.
getRoot
returns a new proxy of cloned root.
getValueByPath
returns the JSONElement corresponding to the given path.
getVersionVector
returns the version vector of document
Private
isPrivate
removesubscribe
registers a callback to subscribe to events on the document.
The callback will be called when the document is changed.
Optional
error: ErrorFnOptional
complete: CompleteFnsubscribe
registers a callback to subscribe to events on the document.
The callback will be called when the clients watching the document
establishe or update its presence.
Optional
error: ErrorFnOptional
complete: CompleteFnsubscribe
registers a callback to subscribe to events on the document.
The callback will be called when the current client establishes or updates its presence.
Optional
error: ErrorFnOptional
complete: CompleteFnsubscribe
registers a callback to subscribe to events on the document.
The callback will be called when the client establishes or terminates a connection,
or updates its presence.
Optional
error: ErrorFnOptional
complete: CompleteFnsubscribe
registers a callback to subscribe to events on the document.
The callback will be called when the stream connection status changes.
Optional
error: ErrorFnOptional
complete: CompleteFnsubscribe
registers a callback to subscribe to events on the document.
The callback will be called when the document status changes.
Optional
error: ErrorFnOptional
complete: CompleteFnsubscribe
registers a callback to subscribe to events on the document.
The callback will be called when the document is synced with the server.
Optional
error: ErrorFnOptional
complete: CompleteFnsubscribe
registers a callback to subscribe to events on the document.
The callback will be called when the targetPath or any of its nested values change.
Optional
error: ErrorFnOptional
complete: CompleteFnsubscribe
registers a callback to subscribe to events on the document.
The callback will be called when the broadcast event is received from the remote client.
subscribe
registers a callback to subscribe to events on the document.
The callback will be called when the local client sends a broadcast event.
subscribe
registers a callback to subscribe to events on the document.
The callback will be called when the authentification error occurs.
subscribe
registers a callback to subscribe to events on the document.
Optional
error: ErrorFnOptional
complete: CompleteFntoJSForTest
returns value with meta data for testing.
update
executes the given updater to update this document.
Optional
message: string
Document
is a CRDT-based data type. We can represent the model of the application and edit it even while offline.