docs(runtimes): scope the parity claim to what the suite actually tests
CI / build (pull_request) Successful in 33s

The parity suite compares Node's listener against app.fetch inside Node
('Node is truth') — it does not exercise all four runtimes. Saying 'every
runtime ... enforced by a parity test suite' overstates it; the honest
version is that the others share the same app.fetch/app.upgrade core and
each has its own smoke tests. Also fixed the line crediting Node's
WebSocket support to serveDeno/serveBun — Node does it through listen().

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-07-17 10:27:36 -05:00
1 parent 489aa685bb
commit b72883c2ed
1 file changed
+8 -5
+8 -5
View File
@@ -22,12 +22,15 @@ Bun.serve({ fetch: app.fetch });
export default { fetch: app.fetch };
```
**Node is the reference implementation** — every runtime returns the same status, headers,
and body for the same request (enforced by a parity test suite).
**Node is the reference implementation.** A parity suite pins `app.fetch` to Node's native
listener — identical status, headers, and body for the same request. The other runtimes drive
that *same* `app.fetch` / `app.upgrade` core, so they inherit that behaviour rather than
re-implementing it, and each carries its own smoke tests: Deno and Bun cover WebSocket and mesh,
and edge runs against real workerd (Miniflare).
**All four runtimes now have full WebSocket support:** Node, Deno, and Bun via `serveDeno` /
`serveBun`, and Cloudflare Workers / edge via `edgeHandler` (see below) — same graph, same
`@Ws` handlers, same rooms/channels everywhere. `app.listen()`, TLS and per-request timeouts
**All four runtimes now have full WebSocket support:** Node via `app.listen()`, Deno and Bun via
`serveDeno` / `serveBun`, and Cloudflare Workers / edge via `edgeHandler` (see below) — same graph,
same `@Ws` handlers, same rooms/channels everywhere. `app.listen()`, TLS and per-request timeouts
remain Node-only; on Deno/Bun/edge you get `app.fetch` + the runtime's adapter. **Mesh (alpha)
runs on Node, Deno and Bun** — teapot and teacup, in any combination — but not on edge.