Skip to content

Documentation / @super-line/client / CrdtCollectionHandle

Interface: CrdtCollectionHandle<Doc>

Defined in: index.ts:239

Client-side handle for one CRDT document collection, reached via client.collection(name) (opened by id).

Type Parameters

Doc

Doc = unknown

Methods

open()

open(id, opts?): DocHandle<Doc>

Defined in: index.ts:245

Open a reactive handle for a document (catch-up snapshot + live merges + write-through). origin tags THIS handle's writes on the wire (echo-break + inspector/CC attribution — e.g. agent:planner). Client-claimed and untrusted; policies never see it. Default: the engine id.

Parameters

id

string

opts?
origin?

string

Returns

DocHandle<Doc>

Released under the MIT License.