Skip to content

YjsEditorSource

Defined in: yjs/src/editor.ts:8

PublicKey = unknown

readonly document: Doc

Defined in: yjs/src/editor.ts:9

change(change, message?): Promise<unknown>

Defined in: yjs/src/editor.ts:10

(document) => void

string

Promise<unknown>


releaseActor(actor): void

Defined in: yjs/src/editor.ts:25

Release an actor from reserveActor() once the mirror is discarded.

string

void


reserveActor(): Promise<string | undefined>

Defined in: yjs/src/editor.ts:23

A fresh actor bound to the source’s signer, for the editor mirror.

Promise<string | undefined>


subscribe(id, handler, originFilter?): void

Defined in: yjs/src/editor.ts:11

string

(document, readers, writers, hashes) => void

"all" | "local" | "remote"

void


unsubscribe(id): void

Defined in: yjs/src/editor.ts:21

string

void