cosmjs icon indicating copy to clipboard operation
cosmjs copied to clipboard

drop isomorphic-ws

Open dynst opened this issue 4 months ago • 1 comments

Node.js 21 added and 22 enabled native WebSocket by default.

https://nodejs.org/en/blog/announcements/v21-release-announce https://nodejs.org/en/blog/announcements/v22-release-announce https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API

It looks like there aren't many choices for polyfills out there; Node uses undici natively so that's the only logical choice for using it on Node 20.

https://www.npmjs.com/package/tcp-websocket

dynst avatar Aug 19 '25 21:08 dynst

Okay but using isomorphic-ws for Node 20/22/24 support does no harm, right? The package looks incredibly simple and require('ws') is likely not going away any time soon.

webmaster128 avatar Oct 17 '25 08:10 webmaster128