Repository navigation
WS0: the nitro-websockets epic doc set - #1
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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