Uh oh!
There was an error while loading. Please reload this page.
http: expose websocket in nodehttp - #53721
Conversation
nodejs-github-bot
commented
Jul 4, 2024
Review requested:
|
mcollina
left a comment
There was a problem hiding this comment.
Good job! Docs are missing too.
Can you add a test that the given objects are the same of the global?
Uh oh!
There was an error while loading. Please reload this page.
avivkeller
commented
Jul 4, 2024
I've added |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com>
PuruVJ
commented
Jul 5, 2024
Thank you @anfibiacreativa for implementing this so darn fast! 🚀🙏 |
manekinekko
commented
Jul 5, 2024
As discussed in #53684, can we track this change to be backported to v22.x as well? |
anfibiacreativa
commented
Jul 5, 2024
avivkeller
commented
Jul 5, 2024
Once this lands, There's no LTS watch label for v22.x yet. |
mcollina
commented
Jul 5, 2024
This will be released in v22 first, then backported to v20.x after at least two weeks. |
It may be the most appropriate module, but why We don't expose |
avivkeller
commented
Jul 5, 2024
What would you recommend exposing it under (if it were to be exposed at all), |
Uh oh!
There was an error while loading. Please reload this page.
Just like other new globals I would not backport it. Anyway, that is my personal opinion, not a blocker. |
nodejs-github-bot
commented
Jul 8, 2024
Landed in a1869fa |
manekinekko
commented
Jul 8, 2024
Congrats @anfibiacreativa on your 1st contribution to node core! Thank you all for taking the time to review these changes. |
PR-URL: #53721 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: James M Snell <jasnell@gmail.com>
Notable changes: http: * (SEMVER-MINOR) expose websockets (Natalia Venditto) #53721 module: * add __esModule to require()'d ESM (Joyee Cheung) #52166 path: * (SEMVER-MINOR) add `matchGlob` method (Aviv Keller) #52881 process: * (SEMVER-MINOR) port on-exit-leak-free to core (Vinicius Lourenço) #53239 stream: * (SEMVER-MINOR) pipeline wait for close before calling the callback (jakecastelli) #53462 worker: * (SEMVER-MINOR) add postMessageToThread (Paolo Insogna) #53682 PR-URL: #53826
PR-URL: #53721 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: James M Snell <jasnell@gmail.com>
Notable changes: http: * (SEMVER-MINOR) expose websockets (Natalia Venditto) #53721 lib: * (SEMVER-MINOR) add `node:sqlite` module (Colin Ihrig) #53752 module: * add `__esModule` to `require()`'d ESM (Joyee Cheung) #52166 path: * (SEMVER-MINOR) add `matchesGlob` method (Aviv Keller) #52881 process: * (SEMVER-MINOR) port on-exit-leak-free to core (Vinicius Lourenço) #53239 stream: * (SEMVER-MINOR) pipeline wait for close before calling the callback (jakecastelli) #53462 test_runner: * support glob matching coverage files (Aviv Keller) #53553 worker: * (SEMVER-MINOR) add `postMessageToThread` (Paolo Insogna) #53682 PR-URL: #53826
Notable changes: http: * (SEMVER-MINOR) expose websockets (Natalia Venditto) #53721 lib: * (SEMVER-MINOR) add `node:sqlite` module (Colin Ihrig) #53752 module: * add `__esModule` to `require()`'d ESM (Joyee Cheung) #52166 path: * (SEMVER-MINOR) add `matchesGlob` method (Aviv Keller) #52881 process: * (SEMVER-MINOR) port on-exit-leak-free to core (Vinicius Lourenço) #53239 stream: * (SEMVER-MINOR) pipeline wait for close before calling the callback (jakecastelli) #53462 test_runner: * support glob matching coverage files (Aviv Keller) #53553 worker: * (SEMVER-MINOR) add `postMessageToThread` (Paolo Insogna) #53682 PR-URL: #53826
Notable changes: http: * (SEMVER-MINOR) expose websockets (Natalia Venditto) #53721 lib: * (SEMVER-MINOR) add `node:sqlite` module (Colin Ihrig) #53752 module: * add `__esModule` to `require()`'d ESM (Joyee Cheung) #52166 path: * (SEMVER-MINOR) add `matchesGlob` method (Aviv Keller) #52881 process: * (SEMVER-MINOR) port on-exit-leak-free to core (Vinicius Lourenço) #53239 stream: * (SEMVER-MINOR) pipeline wait for close before calling the callback (jakecastelli) #53462 test_runner: * support glob matching coverage files (Aviv Keller) #53553 worker: * (SEMVER-MINOR) add `postMessageToThread` (Paolo Insogna) #53682 PR-URL: #53826
Notable changes: http: * (SEMVER-MINOR) expose websockets (Natalia Venditto) #53721 lib: * (SEMVER-MINOR) add `node:sqlite` module (Colin Ihrig) #53752 module: * add `__esModule` to `require()`'d ESM (Joyee Cheung) #52166 path: * (SEMVER-MINOR) add `matchesGlob` method (Aviv Keller) #52881 process: * (SEMVER-MINOR) port on-exit-leak-free to core (Vinicius Lourenço) #53239 stream: * (SEMVER-MINOR) pipeline wait for close before calling the callback (jakecastelli) #53462 test_runner: * support glob matching coverage files (Aviv Keller) #53553 worker: * (SEMVER-MINOR) add `postMessageToThread` (Paolo Insogna) #53682 PR-URL: #53826
Notable changes: http: * (SEMVER-MINOR) expose websockets (Natalia Venditto) nodejs#53721 lib: * (SEMVER-MINOR) add `node:sqlite` module (Colin Ihrig) nodejs#53752 module: * add `__esModule` to `require()`'d ESM (Joyee Cheung) nodejs#52166 path: * (SEMVER-MINOR) add `matchesGlob` method (Aviv Keller) nodejs#52881 process: * (SEMVER-MINOR) port on-exit-leak-free to core (Vinicius Lourenço) nodejs#53239 stream: * (SEMVER-MINOR) pipeline wait for close before calling the callback (jakecastelli) nodejs#53462 test_runner: * support glob matching coverage files (Aviv Keller) nodejs#53553 worker: * (SEMVER-MINOR) add `postMessageToThread` (Paolo Insogna) nodejs#53682 PR-URL: nodejs#53826
MTyson
commented
Jul 20, 2024
Is there any info on this yet? It looks like, based on the code, that it is just exposing undici lib and that is just a client, not a server? |
mcollina
commented
Jul 21, 2024
This will be released in the next version of Node v22. We don't plan to add a server. |
mcollina
commented
Aug 22, 2024
@marco-ippolito @nodejs/releasers I saw this was not picked up by the latest 20.17. How can we make sure it's picked up in the next one? |
marco-ippolito
commented
Aug 22, 2024
Yes, I was unsure because we didnt unflag websocket client on v20 |
mcollina
commented
Aug 22, 2024
The whole point of this is exposing the Websocket client in v20. It's written in the linked issue. Can you make sure it's in the next one? |
KhafraDev
commented
Aug 22, 2024
WebSocket can be exposed in node v20 (at least in 20.17.0) with --experimental-websocket as a global |
targos
commented
Sep 21, 2024
This lands cleanly on v20.x-staging but the test doesn't pass:
|
This PR exposes Websocket in node:http as requested in #53684
Once we discuss, if it satisfies the requirement, we can backport to Node.js 20 and 22
CC: @mcollina @nodejs/http @manekinekko