fn

bindCrdt

tested

Wire a CrdtProvider to an Writekit: local transactions flow into the CRDT, and remote ops are reflected back as a single history-bypassing setDoc transaction. The provider's onLocalOps/applyUpdate are connected to a transport by the caller.

Signature

ts
export function bindCrdt(writekit: Writekit, provider: CrdtProvider): CrdtBinding{ ... }

Parameters

ParameterTypeDescription
writekitWritekit
providerCrdtProvider

Returns

CrdtBinding
PropertyTypeDescription
detach() => void