Skip to main content
100%

automerge-repo message types

✓ Published0🌍 Public
HHerbCaudill
Last edited Jun 10, 2023
Created on Jun 8, 2023

This visualization maps the evolving message-type definitions of the `automerge-repo` library, contrasting proposed types like `SyncMessage`, `EphemeralMessage`, and `AuthMessage` with existing adapter-specific payloads. It shows how fields such as `peerId`, `channelId`, and `broadcast` are repurposed inconsistently across `NetworkAdapter`, `DocSynchronizer`, and `EphemeralData` classes. The diagram highlights the `channelId` encoding scheme (`m/` for ephemeral, `a/` for auth) and flags redundant or unused patterns like `DocHandleMessagePayload`. The source is a single TypeScript gist by HerbCaudill, presented as raw code excerpts.

AI-generated description

Similar vizzes