cosmjs
cosmjs copied to clipboard
drop isomorphic-ws
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
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.