Stable participant id attached to every submitted operation.
Generates operation correlation ids; injectable for deterministic tests.
Creates the transport socket; defaults to the browser WebSocket.
ReadonlyactorStable participant id attached to every submitted operation.
ReadonlycreateGenerates operation correlation ids; injectable for deterministic tests.
ReadonlycreateCreates the transport socket; defaults to the browser WebSocket.
Latest authoritative annotation snapshot, or null before initialization.
Latest authoritative form snapshot, or null before initialization.
Latest authoritative page snapshot, or null until the session is joined.
Approves one pending participant using the current admitted connection.
The join request identifier.
Closes the transport. Any queued or pending operations are rejected.
Opens the relay socket and joins sessionId.
The URL to use.
The collaboration session identifier.
Options that customize the operation.
The initial authoritative page snapshot.
Rejects one pending participant using the current admitted connection.
The join request identifier.
Internal
Broadcasts a non-persistent annotation drag preview without a revision.
The changes to apply.
Queues a page operation and resolves after its authoritative commit.
The operation to apply.
The resulting Promise.
Queues an annotation mutation and resolves after its authoritative commit.
The change to apply.
The resulting Promise.
Queues a source-scoped form value and resolves after its authoritative commit.
The change to apply.
The resulting Promise.
Subscribes to page snapshots. The listener is called after subsequent commits.
The callback to invoke when the value changes.
A function that removes the listener.
Internal
Subscribes to transient annotation drag previews.
The callback to invoke when the value changes.
A function that removes the listener.
Subscribes to annotation state and immediately emits an existing snapshot.
The callback to invoke when the value changes.
A function that removes the listener.
Subscribes to relay connection lifecycle changes.
The callback to invoke when the value changes.
A function that removes the listener.
Subscribes to form state and immediately emits an existing snapshot.
The callback to invoke when the value changes.
A function that removes the listener.
Subscribes to approved, rejected, or cancelled join-request resolutions.
The callback to invoke when the value changes.
A function that removes the listener.
Subscribes to requests from participants waiting for admission.
The callback to invoke when the value changes.
A function that removes the listener.
Subscribes to the current connected-participant count.
The callback to invoke when the value changes.
A function that removes the listener.
Browser-side client for the reference strict-revision relay protocol.
Page, annotation, and form operations have independent queues and revision streams. Each stream sends one local operation at a time and resolves its promise only after the relay broadcasts the authoritative commit.