Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Node.js 21.2.0 release, official introduction of built-in WebSocket features

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > IT Information >

Share

Shulou(Shulou.com)11/24 Report--

CTOnews.com, November 16, Node.js is an open source, cross-platform JavaScript environment that can run JavaScript on the server. The latest version is based on the V8 JavaScript 11.8 engine developed by Google, which allows developers to write server-side and browser-side programs in JavaScript at the same time, in order to create a more convenient development process.

Node.js 21.2.0 has been officially released, which is a small fix for Node.js 21. Friends can click here to visit the project address.

According to officials, one of the biggest highlights of Node.js 21 includes a built-in WebSocket client that connects directly to the WebSocket server through a program with Node.js without having to rely on a third-party kit library.

In Node.js 21, developers only need to use "node-experimental-websocket" to use the WebSocket function, which allows real-time two-way traffic between the server and the client, which is very useful for IM chat functions, real-time updated websites and interactive games.

The main changes in Node.js 21.2.0 version attached to CTOnews.com are as follows:

[e25c65ee2f]-doc: add MrJithil to collaborators # 50666

[f2366573f9]-doc: add Ethan-Arrowood as collaborator # 50393

[eac9cc5fcb]-(SEMVER-MINOR) esm: add import.meta.dirname and import.meta.filename (James Sumners) # 48740

[7e151114b1]-fs: add stacktrace to fs / promises # 49849

[6dbb280733]-(SEMVER-MINOR) lib: add-- no-experimental-global-navigatorCLI flag # 50562

[03c730b931]-(SEMVER-MINOR) lib: add navigator.language and navigator.languages # 50303

[f932f4c518]-(SEMVER-MINOR) lib: add navigator.platform # 50385

[91f37d1dc3]-(SEMVER-MINOR) stream: add deflate-raw format support for webstreams compression # 50097

[65850a67c7]-stream: use array # 50341 for readable buffers

[e433fa54b7]-stream: optimized creation # 50337

[c9b92bba58]-(SEMVER-MINOR) test_runner: add built-in lcov reporter # 50018

[f6c496563e]-(SEMVER-MINOR) test_runner: add Date to the supported simulated API (Lucas Santos) # 48638

[05e8b6ef20]-(SEMVER-MINOR) test_runner, cli: add-- test-timeout flag # 50443

On average, Node.js launches a major version every six months. According to W3Techs's statistics in November this year, Node.js is now the sixth largest web server suite in the world, with a market share of 3%. The top five are Nginx (34.3%), Apache (30.8%), Cloudflare Server (21.2%), LiteSpeed (12.6%) and Microsoft-IIS (5.3%).

Node.js 's market share is rising, from 2.1 per cent in November last year to 3 per cent today, while Microsoft-IIS has fallen from 5.9 per cent to 5.3 per cent over the same period.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

IT Information

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report