API reference / @evolu/common / Evolu/Protocol / ProtocolMessageRangesMaxSize

Variable: ProtocolMessageRangesMaxSize

const ProtocolMessageRangesMaxSize: BrandType<
  Type<"Brand", number & Brand<"Int">, number, IntError, number, NumberError>,
  "Between3000-100000",
  BetweenError<3000, 100000>,
  IntError | NumberError
>;

Defined in: packages/common/src/Evolu/Protocol.ts:297

Protocol message ranges maximum size.

Defines the upper limit for how large the ranges section of a protocol message can be. Implementations must enforce a maximum size between 3KB and 100KB to ensure compatibility.

The upper bound is set to ensure ranges fit within the default 1MB defaultProtocolMessageMaxSize, maintaining compatibility between all clients and relays.

Was this page helpful?