• Blog
  • Changelog
  • Follow us on GitHubFollow us on XJoin our Discord server
  • Blog
  • GitHub
  • Releases
  • Getting started

    • Overview
  • Library

    • Getting started
    • Result
    • Task
    • Type
    • Dependency injection
    • Conventions
  • Local-first

    • Getting started
    • Playgrounds
    • Examples
    • Indexes
    • Relay
    • Time travel
    • Migrations
    • Protocol
    • Privacy
    • FAQ
  • Other

    • API reference
    • Comparison
    • Showcase
    • Changelog

API reference / @evolu/common / local-first/Protocol / defaultProtocolMessageMaxSize

Variable: defaultProtocolMessageMaxSize

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

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

Default ProtocolMessageMaxSize (1MB).

The standard size used across Evolu implementations. Relays with more resources can configure larger sizes to reduce roundtrips.

Was this page helpful?

© Copyright 2025. All rights reserved.

Follow us on GitHubFollow us on XJoin our Discord server