From b72883c2ed9f0c7371c890c2661006c7ede81439 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Fri, 17 Jul 2026 10:27:36 -0500 Subject: [PATCH] docs(runtimes): scope the parity claim to what the suite actually tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- website/src/content/docs/guides/runtimes.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/website/src/content/docs/guides/runtimes.md b/website/src/content/docs/guides/runtimes.md index 946cf31..bf07f79 100644 --- a/website/src/content/docs/guides/runtimes.md +++ b/website/src/content/docs/guides/runtimes.md @@ -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.