TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Direct Sockets API in Chrome 131

200 pointsby michaelkrem7 months ago

27 comments

modeless7 months ago
I think a lot of people don&#x27;t realize it&#x27;s possible to use UDP in browsers today with WebRTC DataChannel. I have a demo of multiplayer Quake III using peer-to-peer UDP here: <a href="https:&#x2F;&#x2F;thelongestyard.link&#x2F;" rel="nofollow">https:&#x2F;&#x2F;thelongestyard.link&#x2F;</a><p>Direct sockets will have their uses for compatibility with existing applications, but it&#x27;s possible to do almost any kind of networking you want on the web if you control both sides of the connection.
评论 #42024302 未加载
评论 #42024979 未加载
评论 #42023954 未加载
评论 #42026583 未加载
评论 #42025375 未加载
评论 #42046713 未加载
评论 #42023695 未加载
评论 #42025751 未加载
评论 #42023912 未加载
评论 #42023891 未加载
评论 #42030961 未加载
chocolatkey7 months ago
When reading <a href="https:&#x2F;&#x2F;github.com&#x2F;WICG&#x2F;direct-sockets&#x2F;blob&#x2F;main&#x2F;docs%2Fexplainer.md">https:&#x2F;&#x2F;github.com&#x2F;WICG&#x2F;direct-sockets&#x2F;blob&#x2F;main&#x2F;docs%2Fexpl...</a>, it&#x27;s noted this is part of the &quot;isolated web apps&quot; proposal: <a href="https:&#x2F;&#x2F;github.com&#x2F;WICG&#x2F;isolated-web-apps&#x2F;blob&#x2F;main&#x2F;README.md">https:&#x2F;&#x2F;github.com&#x2F;WICG&#x2F;isolated-web-apps&#x2F;blob&#x2F;main&#x2F;README.m...</a> , which is important context because the obvious reaction to this is the security nightmare
评论 #42024181 未加载
评论 #42023355 未加载
评论 #42026413 未加载
chrisvenum7 months ago
I found this issue indicating a bad idea for end user safety:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;mozilla&#x2F;standards-positions&#x2F;issues&#x2F;431">https:&#x2F;&#x2F;github.com&#x2F;mozilla&#x2F;standards-positions&#x2F;issues&#x2F;431</a>
评论 #42029248 未加载
jeswin7 months ago
I prefer web apps to native apps any day. However, web apps are limited by what they can do.<p>But what they can do is not consistent - for example, it can take your picture and listen to your microphone if you give permissions; but it can&#x27;t open a socket. Another example: Chrome came out with an File System Access API [2] in August; it&#x27;s fantastic (I am using it) and it allows a class of native apps to be replaced by Web Apps. As a user, I don&#x27;t mind having to jump through hoops (as a user) and giant warning screens to accept that permission - but I want this ability on the Web Platform.<p>For Web Apps to be able to complete with native apps, we need more flexibility Mozilla. [1]<p>[1]: <a href="https:&#x2F;&#x2F;mozilla.github.io&#x2F;standards-positions&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mozilla.github.io&#x2F;standards-positions&#x2F;</a> [2]: <a href="https:&#x2F;&#x2F;developer.chrome.com&#x2F;docs&#x2F;capabilities&#x2F;web-apis&#x2F;file-system-access" rel="nofollow">https:&#x2F;&#x2F;developer.chrome.com&#x2F;docs&#x2F;capabilities&#x2F;web-apis&#x2F;file...</a>
评论 #42024356 未加载
Uptrenda7 months ago
I saw this proposal years ago now and was initially excited about it. But seeing how people envisioned the APIs, usage, etc, made me realize that it was already too locked down. Being able to have something that ran on any browser is the core benefit here. I get that there are security concerns but unfortunately everyone who worked on this was too paranoid and dismissive to design something open (yet secure.) And that&#x27;s where the proposal is today. A niche feature that might as well just be regular sockets on the desktop. 0&#x2F;10
mlhpdx7 months ago
I’m excited, and anticipate some interesting innovation once browser applications can “talk UDP”. It’s a long time in the making. Gaming isn’t the end of it — being able to communicate with local network services (hardware) without involving an API intervening is very attractive.
评论 #42025210 未加载
Spivak7 months ago
Anything that moves the web closer to its natural end state— the J(S)VM is a win in my book. Making web apps a formally separate thing from pages might do some good for the web overall. We could start thinking about taking away features from the page side.
评论 #42026533 未加载
fhdsgbbcaA7 months ago
Great fingerprinting vector. Expect nothing less from Google.
hipadev237 months ago
What about WebTransport? I thought that was the http&#x2F;3 upgrade to WebSockets that supported unreliable and out-of-order messaging
评论 #42028071 未加载
troupo7 months ago
Status of specification: &quot;It is not a W3C Standard nor is it on the W3C Standards Track.&quot;<p>Status in Chrome: shipping in 131<p>Expect people claiming this is a vital standard that Apple is not implementing because they don&#x27;t want web apps to compete with App Store. Also expect sites like <a href="https:&#x2F;&#x2F;whatpwacando.today&#x2F;" rel="nofollow">https:&#x2F;&#x2F;whatpwacando.today&#x2F;</a> uncritically just include this
评论 #42025834 未加载
badgersnake7 months ago
It’s pretty clear Google are building an operating system, not a browser.
评论 #42050302 未加载
bloomingkales7 months ago
Can a browser run a web server with this?
评论 #42025036 未加载
评论 #42024240 未加载
arzig7 months ago
The inner platform effect intensifies.
westurner7 months ago
From &quot;Chrome 130: Direct Sockets API&quot; (2024-09) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41418718">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41418718</a> :<p>&gt; <i>I can understand FF&#x27;s position on Direct Sockets</i> [...] <i>Without support for Direct Sockets in Firefox, developers have JSONP, HTTP, WebSockets, and WebRTC.</i><p>&gt; <i>Typically today, a user must agree to install a package that uses L3 sockets before they&#x27;re using sockets other than DNS, HTTP, and mDNS. HTTP Signed Exchanges is one way to sign webapps.</i><p>But HTTP Signed Exchanges is cancelled, so arbitrary code with sockets if one ad network?<p>...<p>&gt; <i>Mozilla&#x27;s position is that Direct Sockets would be unsafe and inconsiderate given existing cross-origin expectations FWIU: <a href="https:&#x2F;&#x2F;github.com&#x2F;mozilla&#x2F;standards-positions&#x2F;issues&#x2F;431">https:&#x2F;&#x2F;github.com&#x2F;mozilla&#x2F;standards-positions&#x2F;issues&#x2F;431</a> </i><p>&gt; <i>Direct Sockets API &gt; Permissions Policy: <a href="https:&#x2F;&#x2F;wicg.github.io&#x2F;direct-sockets&#x2F;#permissions-policy" rel="nofollow">https:&#x2F;&#x2F;wicg.github.io&#x2F;direct-sockets&#x2F;#permissions-policy</a> </i><p>&gt; <i>docs&#x2F;explainer.md &gt;&gt; Security Considerations : <a href="https:&#x2F;&#x2F;github.com&#x2F;WICG&#x2F;direct-sockets&#x2F;blob&#x2F;main&#x2F;docs&#x2F;explainer.md#security-considerations">https:&#x2F;&#x2F;github.com&#x2F;WICG&#x2F;direct-sockets&#x2F;blob&#x2F;main&#x2F;docs&#x2F;explai...</a> </i>
demarq7 months ago
Something tells me this is more to do with a product Google wants to launch rather than a genuine attempt to further the web.<p>I’ll keep my eyes on this one, see where we are in a year
FpUser7 months ago
All nice and welcome. At what point browser becomes full blown OS with the same functionality and associated vulnerabilities yet still less performant as it sites on top of other OS and goes through more layers. And of course ran and driven by one of the largest privacy invader and spammer of the world
评论 #42027586 未加载
revskill7 months ago
That means we can connect directly to remote Postgres server from web browser ?
评论 #42028688 未加载
kureikain7 months ago
This means that we can finally do gRPC directly from browser.
Asmod4n7 months ago
Thank god they plan to limit this to electron type apps.
sabbaticaldev7 months ago
so with this I would be able to create a server in my desktop web app and sync all my devices using webrtc
hexo7 months ago
Game over for security.
tjoff7 months ago
Great, so now a mis-click and your browser will have a field day infecting your printer, coffee machine and all the other crap that was previously shielded by NAT and&#x2F;or a firewall.
评论 #42025009 未加载
grishka7 months ago
Can we please stop this feature creep in browsers already?
pjmlp7 months ago
Yet another small step into ChromeOS take over.
huqedato7 months ago
Just now, when I have only recently switched permanently to Firefox...
Jiahang7 months ago
nice!
xenator7 months ago
Can&#x27;t wait to see it working.
评论 #42026840 未加载