unjs / unenv

🕊️ Convert javaScript code to be runtime agnostic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`WebSocket` polyfill for Node.js

pi0 opened this issue · comments

The Websocket global is not available for Node.js other than by importing it from node:ws.

Browsers, Deno and Bun already have a native implementation of WebSocket....

(i might even consider making a package for this!) Found sxzz/unws!

Thinking more it could be in Nitro directly in first step.