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

const defaultProtocolMessageMaxSize: number &
  Brand<"NonNaN"> &
  Brand<"Finite"> &
  Brand<"Int"> &
  Brand<"Between1000000-100000000">;

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

Default ProtocolMessageMaxSize (1MB).

The standard size used across Evolu implementations. Clients send at most this size, and relays accept it. Relays with more resources can answer with larger messages to reduce roundtrips.