fn
bindCrdt
testedWire 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
| Parameter | Type | Description |
|---|---|---|
writekit | Writekit | — |
provider | CrdtProvider | — |
Returns
CrdtBinding| Property | Type | Description |
|---|---|---|
detach | () => void | — |