Hacker News new | ask | show | jobs
by Fr33maan 2187 days ago
finally a specification for datagrams, unordered and unreliable ! This was one of the big struggles of bringing mmo to the browser. DatagramTransport seems really promising as it provides encryption and congestion control which are the most complicated parts of any netcode. Good luck !
2 comments

This was one of the big struggles to bring anything remotely time critical to the browser.

WebSockets only works for the mere basics.

SCTP already provides that in WebRTC.
But requires a lot of mucking around with STUN/TURN/ICE, which is far less desirable than just "send UDP packets to a browser".
You don't need to use STUN and TURN for client->server use cases, but you do need ICE, DTLS, and SCTP.