TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Local Peer-to-Peer API Draft Community Group Report

28 点作者 bedatadriven6 个月前

4 条评论

jauntywundrkind6 个月前
<i>Local</i> peer to peer? Please, just give us <i>QUIC API for Peer-to-peer Connections</i> <a href="https:&#x2F;&#x2F;github.com&#x2F;w3c&#x2F;p2p-webtransport">https:&#x2F;&#x2F;github.com&#x2F;w3c&#x2F;p2p-webtransport</a> and bring back <i>Network Discovery</i> <a href="https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;discovery-api&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;discovery-api&#x2F;</a> or something like it.<p>Conflating a couple separate specs together for a single use case is bad. Keep specs lower level. P2p connectivity should be a thing, unto itself. Local networking should be a thing.<p>See also, <i>direct socket API in Chrome 131</i>, 5 days ago, <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42022649">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42022649</a>
评论 #42048127 未加载
saurik6 个月前
Why does this contain both data channels <i>and</i> WebTransport? Isn&#x27;t the latter just more data channels?<p>edit: OK, I found this issue.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;WICG&#x2F;local-peer-to-peer&#x2F;issues&#x2F;29">https:&#x2F;&#x2F;github.com&#x2F;WICG&#x2F;local-peer-to-peer&#x2F;issues&#x2F;29</a><p>Ugh... this is just so poorly thought through. We keep ending up with overly complex protocols that have too many states and too many options and too many control messages to accomplish what a more simple API could provide, and so to implement all of this we keep needing too much code and too many special cases and too many round trips to establish anything.
评论 #42051247 未加载
Rhapso6 个月前
<a href="https:&#x2F;&#x2F;wicg.github.io&#x2F;local-peer-to-peer&#x2F;#security-same-origin" rel="nofollow">https:&#x2F;&#x2F;wicg.github.io&#x2F;local-peer-to-peer&#x2F;#security-same-ori...</a><p>The W3C won&#x27;t ever adopt a system like this. They intentionally nerfed all local-loopback servers to never be able to effectively use websockets or ssl. That seems like a place to start before adopting this.<p>I honestly don&#x27;t believe we will be able to meaningfully change or improve browsers without abandoning the w3c and starting standards over almost from scratch. Brave exists, but we would need to do better than that and design more general p2p protocols and systems.
评论 #42048137 未加载
gyf3046 个月前
I made something that achieved similar results with existing technologies by abusing STUN&#x2F;TURN. It does not handle discovery but it does allow local communication without a server.<p><a href="https:&#x2F;&#x2F;blog.yifangu.com&#x2F;2024&#x2F;07&#x2F;16&#x2F;crossing-the-mixed-content-boundary-abusing-stun-turn-as-a-communication-channel&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.yifangu.com&#x2F;2024&#x2F;07&#x2F;16&#x2F;crossing-the-mixed-conte...</a>
评论 #42051212 未加载