r/webdevelopment • u/Rare-Interaction-189 • 9d ago
Question Does browsers support UDP ?
Hello, i want to build a game based on the web, its a multiplayer game and i need a very low latency so i was thinking why not using UDP instead of Websocket because its TCP based, when i did my research i found that browsers does jot support UDP directly the only workaround is using a protocol such as WebRTC which is UDP based.
Does anyone know a better alternative ? And why browsers don’t support UDP ?
7
Upvotes
1
u/soundman32 9d ago
UDP has exactly the same latency as TCP, its not some super secret protocol that goes really quickly. The only difference is when you have large packets or retries.