2
lorentz
287d

A datagram connection supported by all major browsers

https://developer.mozilla.org/en-US...

Comments
  • 1
    I don't know if anyone else finds this as revolutionary as I do. Technically we had WebRTC but it was a massive pain to set up.
  • 0
    Seems nicely straightforward.
    But I'll have to wait for decades until firefox implements it.
    Or they never will, depending on their position regarding this feature.
  • 0
    @Ranchonyx I think the datagram part is already implemented, no?
  • 1
    @lorentz nevermind. The icons at the top were misleading. It's implemented.
  • 1
    @Ranchonyx Yeah, I'm looking at the feature table because "partial support" for an API this broad is completely meaningless.
  • 1
    @jestdotty WebRTC is specifically for p2p, basically, somewhere between their 5th and 7th videoconferencing app Google decided that the web needs a standard for videochats because web clients up to that point used webosckets (or even HTTP polling on occasion) which will retry lost packets and destroy the latency. As such, WebRTC encrypts all of its traffic and passes it through an authenticated UDP relay (a TURN server), which is a whole other can of worms because datagrams are too small for normal encryption.
  • 1
    @jestdotty Other than WebRTC, this is the first datagram protocol supported in browsers, and as someone who tried multiple times to set up a TURN relay and never succeeded, in my eyes this is the first web API suitable for authoritative server multiplayer games.
Add Comment