Node.js 21.2.0 released, introduces built-in WebSocket function

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

Continue after the short break

ad: GET $10,000+ Free Elon Musk Money on X (Twitter) Click Here
ad: Monetize your Facebook Account for Monthly $500 Click Here
ad: How to Earn Free $100 on Binance & Withdraw Click Here

Check Also:

The official has recently released  the Node.js 21.2.0 version, which is a minor repair for Node.js 21. Friends can click here to visit the project address.

According to the official introduction, one of the biggest highlights of Node.js 21 includes the built-in WebSocket client, which can directly connect to the WebSocket server through programs with Node.js , without relying on third-party libraries .

In Node.js 21, developers only need to use “node –experimental-websocket” to use the WebSocket function, allowing instant two-way communication between the server and the client. For IM chat functions, real-time updated websites, Interactive games are very useful.

The main changes in Node.js 21.2.0 version attached 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 arrays for readable buffers #50341

  • [e433fa54b7] -stream: Optimize creation #50337

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

  • [f6c496563e] – (SEMVER-MINOR) test_runner: Add Date to supported mocking API (Lucas Santos) #48638

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

Node.js releases a major version every six months on average. According to statistics from W3Techs 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%), Microsoft-IIS (5.3%).

The market share of Node.js is currently increasing, gradually rising from 2.1% in November last year to 3% now, while Microsoft-IIS fell from 5.9% to 5.3% during the same period.

Advertising statement: The external jump links (including but not limited to hyperlinks, QR codes, passwords, etc.) contained in the article are used to convey more information and save selection time. The results are for reference only. All Naijatechnews articles include this statement.

Article Editor in Chief: Coker | I want to correct article mistakes.