#websocket

[ follow ]
fromnodesource.com
2 weeks ago

15 Recent Node.js Features that Replace Popular npm Packages

Before: Developers installed node-fetch to use the familiar browser fetch() API in Node.js. Now: Starting in Node.js 18, fetch() is a global function, identical to the browser implementation. const res = await fetch('https://api.github.com/repos/nodejs/node'); const data = await res.json(); console.log(data.full_name); // "nodejs/node" When added: Introduced in Node.js v17.5.0 (experimental) Stabilized: Became stable (no longer experimental) in Node.js v18.0.0 When to still use node-fetch: Only if you need older Node.js compatibility (pre-18).
Node JS
Node JS
fromInfoWorld
1 year ago

Node.js 22 arrives, backs ECMAScript modules

Node.js 22 introduces require() support for ECMAScript modules, an improved WebSocket client, and updated Google V8 JavaScript engine.
fromLogRocket Blog
5 months ago

React WebSocket tutorial: Real-time messaging with WebSockets and Socket.IO - LogRocket Blog

The WebSocket protocol offers persistent, real-time, full-duplex communication between the client and the server over a single TCP socket connection.
Node JS
[ Load more ]