News for hackers. Stuff that matters.
Re:Cloudflare Workers Introduces Connect() API to Create TCP... by zuprau on Monday May 29, 2023 @11:44AM (#36115021)
I might be wrong, but they're more like a browser’s "service worker" than a Node app.[0] The fact that they have to manually add "compatibility" with Node modules like `utils`[1] seems to support this.

[0]: https://blog.cloudflare.com/node-js-support-cloudflare-worke...

[1]: https://blog.cloudflare.com/workers-node-js-asynclocalstorag...

Re:Cloudflare Workers Introduces Connect() API to Create TCP... by crabmusket on Monday May 29, 2023 @08:43PM (#36119891)
That's exactly right, and they even use the same API[1] for accepting and replying to HTTP requests . As well as supporting other service worker APIs like caches.

[1] https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent