Expand description
interface WebxdcProviderOptions {
autosaveInterval?: number;
getEditInfo: () => EditInfo;
resendAllUpdates?: boolean;
webxdc: WebxdcTransport;
ydoc: Doc;
}Properties§
§§§§§
autosave Interval?: numberinterval in milliseconds for automatic publishing of updates; If not supplied, it defaults to webxdc.sendUpdateInterval, or 10000 if the messaging layer does not expose this information, as per spec.
get Edit Info: { ... }a callback that returns display info for each update
resend All Updates?: booleansend the entire state of the ydoc with each change. Increased payload size but forces consistency over lost messages. Set to false to send only incremental updates (but dropped updates can cause permanent desynchronization).
webxdc: WebxdcTransportthe webxdc object from window.webxdc
ydoc: Docthe YJS document to be synchronized
Configuration for WebxdcProvider.