API reference › @evolu/common › local‑first/Protocol › ApplyProtocolMessageAsClientOptions

Defined in: packages/common/src/local-first/Protocol.ts:1139

Properties

onChangeTooLarge?

readonly optional onChangeTooLarge?: (error: ProtocolChangeTooLargeError) => void;

Defined in: packages/common/src/local-first/Protocol.ts:1150

Called for each stored change that sync skipped as a ProtocolChangeTooLargeError. Without it, the error is logged with console.warn. It must not throw, because a throw is a defect that aborts the Run.

rangesMaxSize?

readonly optional rangesMaxSize?: number & Brand<"NonNaN"> & Brand<"Finite"> & Brand<"Int"> & Brand<"Between3000-100000">;

Defined in: packages/common/src/local-first/Protocol.ts:1142


version?

readonly optional version?: number & Brand<"NonNaN"> & Brand<"Finite"> & Brand<"Int"> & Brand<"NonNegative">;

Defined in: packages/common/src/local-first/Protocol.ts:1153

For tests only.


writeKey?

readonly optional writeKey?: Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length16"> & Brand<"OwnerWriteKey">;

Defined in: packages/common/src/local-first/Protocol.ts:1140