createYjsEditorBridge
createYjsEditorBridge<
PublicKey>(source,options?):Promise<YjsEditorBridge>
Defined in: yjs/src/editor.ts:47
Bind an editor to an already-open Peerborne document. Local mirror updates enter source.change() before mutating the authoritative document, preserving delta capture, authorization, encryption and publication. The mirror writes under an actor the source reserves for its signer. Remote updates do not echo. After a write failure, recreate the bridge from authoritative state. Presence/awareness transport is not provided.
Type Parameters
Section titled “Type Parameters”PublicKey
Section titled “PublicKey”PublicKey
Parameters
Section titled “Parameters”source
Section titled “source”YjsEditorSource<PublicKey>
options?
Section titled “options?”message?
Section titled “message?”string
onError?
Section titled “onError?”(error) => void
Returns
Section titled “Returns”Promise<YjsEditorBridge>