typograph-editor-documentation
    Preparing search index...

    Variable COLLABORATION_PROTOCOLConst

    COLLABORATION_PROTOCOL: 2

    The collaboration protocol this editor speaks (TYP-1340): the shape of what it puts in the room and reads from it — the keys of the shared document (the elements, texts and swatches ElementSync, TextSync and SwatchSync write into the Y.Doc), the awareness states and the change messages. Sent as ?protocol=<n> on the WebSocket URL; collab-service refuses an editor whose protocol is older than its MIN_PROTOCOL (src/protocol.js there), so two editors that read the room differently never share it. An editor from before TYP-1340 sends none, which counts as 1.

    Raise it when an older editor would misread what this one puts in the room: a key of the shared document renamed or reshaped, an awareness field or change message changed. Raise collab-service's MIN_PROTOCOL to the same number in the same release, and deploy collab-service before this editor is released: in between, every editor is refused and edits alone, which is safe.

    2 — TYP-1340: the template document's keys follow the naming convention.