DEV Community

Cover image for Node 21 brings built-in WebSocket support
Andreas Bergström
Andreas Bergström

Posted on • Edited on • Originally published at andreasbergstrom.dev

Node 21 brings built-in WebSocket support

Node 21 finally ships with a built-in WebSocket client — no more pulling in ws or socket.io-client for a basic browser-style API on the server side. Deno and Bun have shipped this for a while; this closes the gap.

The full post (written just ahead of the v21 release) tracks the upstream Undici PR and the long-running Node issue thread that pushed it across the finish line, with a link to the v21 release announcement once it landed.


Originally published at andreasbergstrom.dev — read the full post there.

Top comments (0)