Skip to content

WS0: the nitro-websockets epic doc set - #1

Merged
pullely merged 1 commit into
mainfrom
orun/WS-1-the-spec
Nov 11, 2026
Merged

pullely merged 1 commit into
mainfrom
orun/WS-1-the-spec

Conversation

@pullely

@pullely pullely commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

The nitro-websockets epic: epic.yaml (key WS, three milestones: the spec, the room on Workers, a baseline), the README, the design (the starter; how each Vercel piece maps to Cloudflare — Nitro's cloudflare_durable preset in place of the Vercel Functions WebSockets bridge, so every upgrade goes to one Durable Object where crossws accepts it as a hibernatable WebSocket; what the spike proved — under wrangler dev the room's Durable Object is evicted after about a minute of quiet and constructed again for the next message, and with the template's state (a module-level roster Map, each identity in peer.context) a cursor after the wake was dropped and a leave never announced; the port keeps the handler and moves the state: each identity into its socket's serialized attachment, the roster read from the live sockets, and the same idle run then passed; the repository and the build; the tests; and the alternatives rejected: a hand-written Durable Object, Nitro 2, identities derived from the peer id, Durable Object storage for the roster), the implementation plan, the risks, the as-built status, and the three task contracts.

🤖 Generated with Claude Code

The nitro-websockets epic: epic.yaml (key WS, three milestones: the spec, the room on Workers, a baseline), the README, the design (the starter; how each Vercel piece maps to Cloudflare — Nitro's cloudflare_durable preset in place of the Vercel Functions WebSockets bridge, so every upgrade goes to one Durable Object where crossws accepts it as a hibernatable WebSocket; what the spike proved — under wrangler dev the room's Durable Object is evicted after about a minute of quiet and constructed again for the next message, and with the template's state (a module-level roster Map, each identity in peer.context) a cursor after the wake was dropped and a leave never announced; the port keeps the handler and moves the state: each identity into its socket's serialized attachment, the roster read from the live sockets, and the same idle run then passed; the repository and the build; the tests; and the alternatives rejected: a hand-written Durable Object, Nitro 2, identities derived from the peer id, Durable Object storage for the roster), the implementation plan, the risks, the as-built status, and the three task contracts.

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: WS-1
@pullely
pullely merged commit 867a390 into main Nov 11, 2026
2 checks passed
@pullely
pullely deleted the orun/WS-1-the-spec branch November 11, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants