CRDTDocumentSession
Defined in: packages/core/src/document-crdt-session.ts:38
One document owner; preparation must not mutate its visible document.
Type Parameters
Section titled “Type Parameters”Document
Section titled “Document”Document
Changes
Section titled “Changes”Changes
Change
Section titled “Change”Change
Properties
Section titled “Properties”document
Section titled “document”
readonlydocument:Document
Defined in: packages/core/src/document-crdt-session.ts:39
Methods
Section titled “Methods”close()
Section titled “close()”close():
void
Defined in: packages/core/src/document-crdt-session.ts:52
Returns
Section titled “Returns”void
prepareLocal()
Section titled “prepareLocal()”prepareLocal(
message,change,options?):PreparedDocumentChange<Changes>
Defined in: packages/core/src/document-crdt-session.ts:40
Parameters
Section titled “Parameters”message
Section titled “message”string
change
Section titled “change”Change
options?
Section titled “options?”Returns
Section titled “Returns”PreparedDocumentChange<Changes>
prepareMergeSnapshot()?
Section titled “prepareMergeSnapshot()?”
optionalprepareMergeSnapshot(snapshot):PreparedDocumentChange<Changes>
Defined in: packages/core/src/document-crdt-session.ts:51
Stage a native CRDT merge that retains already accepted local operations.
Parameters
Section titled “Parameters”snapshot
Section titled “snapshot”Changes
Returns
Section titled “Returns”PreparedDocumentChange<Changes>
prepareRemote()
Section titled “prepareRemote()”prepareRemote(
changes,options?):PreparedDocumentChange<Changes>
Defined in: packages/core/src/document-crdt-session.ts:45
Parameters
Section titled “Parameters”changes
Section titled “changes”Changes
options?
Section titled “options?”Returns
Section titled “Returns”PreparedDocumentChange<Changes>
prepareSnapshot()?
Section titled “prepareSnapshot()?”
optionalprepareSnapshot(snapshot):PreparedDocumentChange<Changes>
Defined in: packages/core/src/document-crdt-session.ts:49
Parameters
Section titled “Parameters”snapshot
Section titled “snapshot”Changes
Returns
Section titled “Returns”PreparedDocumentChange<Changes>