Recent submissions

Comment · 1 year ago
I'm excited to see a major use of WebTransport!
Comment · 1 year ago
Why don't you like libwebrtc? There's a lot of good stuff in there.
Comment · 2 years ago
This is just an initial proposal, and probably will reduce down to one with developer feedback and implementation experience, which is normal for API development.

Whether it's one shape or the other doesn't take affect the network protocol underneath.

If you have constructive ideas of how to simplify the protocol underneath or the API, you can share them with the authors. The people that work on that APIs are always looking for constructive feedback

Comment · 2 years ago
I'm not sure what you mean. It does work without a domain name and SSL cert.
Comment · 2 years ago
Comment · 2 years ago
WebRTC (with p2p) was done within the W3C, as was a p2p QuicTransport. And this new API is similar to the open screen APIs that have been done in the W3C.

So I'm pretty sure work like this can be done in the W3C.

Comment · 2 years ago
I was one of the original authors of the p2p QuicTansport API and the WebTransport API which is based on it.

I've also recently discussed this new local p2p API with the authors. And I'm in the favor of it, at least in principle.

The difference is that local p2p does not require signaling like, say the p2p done by ICE, WebRTC, or p2p QuicTransport. So for some uses cases, this would be better. And, if done right, this would fit well into a cohesive set of APIs that cover both kinds of p2p.

I'm also in favor of making APIs low level, but I'm not sure if raw sockets is going to work. Keeping congestion control working is pretty important.

Comment · 2 years ago
The article's information about WebRTC is not accurate. You can do client/server WebRTC without a "signaling server". Just make the server do the signaling. It takes a few extra round trips, but it doesn't need to be an extra server. And WebRTC data channels work quite well as a replacement for WebSockets or SSE, especially if you want to avoid head-of-line blocking. And there are many libraries that will do pretty much all of the work for you, like Pion or str0m.

I also think calling the WebTransport API complex is overblown. If you don't want the more advanced things, you can ignore them. If you want to use it like a WebSocket, just open one bidirectional stream and you're basically done. If you want to avoid head-of-line blocking, just open a stream for every message. It's a little more complex, but it's not the kind of thing you need a library for. Github Copilot will probably write the code for you. It's true there aren't as many server libraries out there yet, since WebTransport is still maturing. And we're waiting for Safari to add support.

Comment · 2 years ago
There's also WebTransport
Comment · 3 years ago
From a server or a native client, you can send whatever RTP packets you want, but you cannot send whatever RTP packets you want from a web client, and you cannot have access to the RTP packets from a web client and do whatever you want with them, at least not very easily. We are working on an extension to WebRTC called RtpTransport that would allow for just that, but it's in early stages of design and standardization.
Comment · 3 years ago
It's shame it looks like web clients won't be able to connect to each other p2p. If it supported the use of ICE+DTLS+SCTP or even ICE+QUIC, then it web clients could join in.

Or am I missing something in the docs?

Comment · 4 years ago
So WebTransport does what you were proposing to do?
Comment · 4 years ago
It started in the W3C and the IETF group was added later. But thank you for pointing out that a lot of effort is put into making these standards a joint effort across the industry.

(I was one of the original authors in the W3C but left shortly after the BoF happened).

Comment · 4 years ago
How would one add datagrams to WebSockets?
Comment · 4 years ago
You can use ICE and QUIC together. That's what the original version of WebTransport did (back when it was called QuicTransport).

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton