Re:Direct Sockets API in Chrome 131
by bloomingkales on Friday November 01, 2024 @10:44PM
(#42023680)
Can a browser run a web server with this?
[ Parent
| on HN ]
I assume they would limit it to clients.
Re:Direct Sockets API in Chrome 131
by melchizedek6809 on Saturday November 02, 2024 @05:03AM
(#42025036)
Since it allows for accepting incoming TCP connections, this should allow for HTTP servers to run within the browser, although running directly on port 80/443 might not be supported everywhere (can't see it mentioned in the spec, but from what I remember on most *nix systems only root can listen on ports below 1024, though I might be mistaken since it's been a while)