examples/live-notes Public
title: An edit reaching other editorsdescription: Editor A types while editor B has the same note open. The room puts the edit in order, saves it and passes it on.actors: [editor-a, editor-b]steps: - { from: editor-a, to: note-room, label: "op: insert \"oat \" at 4, written against version 41" } - { from: note-room, to: ops, label: transform the op past versions 42 and 43 from the log } - { from: ops, to: note-room, label: "the op as it applies now, which the room saves to SQLite" } - { from: note-room, to: editor-a, label: "ack: version 44" } - { from: note-room, to: editor-b, label: the transformed op at version 44 } - { from: editor-b, to: ops, label: "move the op past B's own unacknowledged edits, then apply it" }