Rebasely Beta: data may be purged

examples/live-notes Public

Show who else is editing #1

Changed files

21 files changed344 additions49 deletionssince main at d21dfdd

Loading a note

2 steps added, 1 relabelled, description changed, actors +editor-b

  • Added
  • Rerouted, relabelled or moved
  • Removed

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.

Loading a note: 7 steps between 4 participants Step 1: editor-a to api, GET / (the editor page and its script, from static assets)GET / (the editor page and it…Step 2: editor-a to api, GET /notes/groceries/ws, Upgrade: websocketGET /notes/groceries/ws, Upgr…Step 3: api to note-room, forward the upgrade to the room for idFromName("groceries")forward the upgrade to the ro…Step 4: note-room to editor-a, 101 Switching Protocols, with a name and color kept on the socket (relabelled, was “101 Switching Protocols, socket accepted for hibernation”)101 Switching Protocols, with a name and col…Step 5: note-room to editor-a, snapshot: the note's text and versionsnapshot: the note's text and versionStep 6: note-room to editor-a, presence: you are Otter, and Heron is here (added)presence: you are Otter, and Heron is hereStep 7: note-room to editor-b, presence: Heron and Otter are here (added)presence: Heron and Otter are…editor-aeditor-aActorapiapiWorkernote-roomnote-roomDurable Objecteditor-b (added in this flow)editor-bActor · added

The flow load-note at the head of this pull request, numbered in its order, with the steps it adds, reroutes, relabels, moves and removes. A removed step has no number.

Steps

  1. Step 1: editor-a → api GET / (the editor page and its script, from static assets)
  2. Step 2: editor-a → api GET /notes/groceries/ws, Upgrade: websocket
  3. Step 3: api → note-room forward the upgrade to the room for idFromName("groceries")
  4. Step 4, relabelled: note-room → editor-a 101 Switching Protocols, with a name and color kept on the socket Relabelled was “101 Switching Protocols, socket accepted for hibernation”
  5. Step 5: note-room → editor-a snapshot: the note's text and version
  6. Step 6, added: note-room → editor-a presence: you are Otter, and Heron is here Added
  7. Step 7, added: note-room → editor-b presence: Heron and Otter are here Added

The flow's description, actors +editor-b changed too.

Knowledge base

Back to the conversation