examples/live-notes Public
title: Loading a notedescription: Someone opens /#groceries while another editor has it open. The page connects to the note's room, gets its text, and both pages learn who is here.actors: [editor-a, editor-b]steps: - { from: editor-a, to: api, label: "GET / (the editor page and its script, from static assets)" } - { from: editor-a, to: api, label: "GET /notes/groceries/ws, Upgrade: websocket" } - { from: api, to: note-room, label: "forward the upgrade to the room for idFromName(\"groceries\")" } - { from: note-room, to: editor-a, label: "101 Switching Protocols, with a name and color kept on the socket" } - { from: note-room, to: editor-a, label: "snapshot: the note's text and version" } - { from: note-room, to: editor-a, label: "presence: you are Otter, and Heron is here" } - { from: note-room, to: editor-b, label: "presence: Heron and Otter are here" }