unjs / unenv

🕊️ Convert javaScript code to be runtime agnostic
MIT License
418 stars 21 forks source link

`WebSocket` polyfill for Node.js #136

Open pi0 opened 1 year ago

pi0 commented 1 year ago

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!

pi0 commented 10 months ago

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