top | item 42192869

(no title)

looshch | 1 year ago

> to the web

you mean like to browser? If yes, how did you achieve UDP connections? To my best knowledge, browsers allow TCP only

discuss

order

desdenova|1 year ago

WebSockets are TCP-only.

WebRTC can run over UDP, but it's not raw UDP. I think that's what they meant.

modeless|1 year ago

Yes, it's WebRTC. It uses real unreliable and unordered UDP packets, peer-to-peer. But WebRTC requires a connection establishment step to happen first, so it can't send traffic to arbitrary UDP services, only cooperating WebRTC peers. Which is fine for multiplayer games.

junon|1 year ago

WebSockets also initiate a normal Http request first, further complicating things anyway.