Browser Multiplayer Networking

The cluster discusses challenges and technologies for real-time multiplayer networking in web-based games, focusing on WebSockets, WebRTC, UDP limitations, peer-to-peer connections, and netcode implementation.

📉 Falling 0.4x Gaming
1,537
Comments
20
Years Active
5
Top Authors
#674
Topic ID

Activity Over Time

2007
1
2008
5
2009
15
2010
18
2011
44
2012
45
2013
68
2014
90
2015
63
2016
96
2017
84
2018
76
2019
83
2020
125
2021
158
2022
179
2023
140
2024
124
2025
116
2026
7

Keywords

gabrielgambetta.com FPS Three.js SSH node.js UDP CC2 UI DNS HTTPS multiplayer networking game udp websockets games webrtc server client cache

Sample Comments

xjh Mar 23, 2014 View on HN

How does it do networking?All I see in docs is a simple GET/POST request. Realtime multiplayer game would be very slow using it.

tinco Jul 10, 2012 View on HN

I am a bit disappointed, they promised a lag free network stack, but they just use websockets, so that's an empty promise. You can't have realtime multiplayer without UDP.

chrischen Oct 25, 2016 View on HN

Its webrtc, so direct peer to peer connections during gameplay.If you just looked at the code you can see for yourself.

plopz Mar 17, 2025 View on HN

the big one is multiplayer games. udp is preferred and trying to work with webrtc is awful

cupofpython Aug 4, 2022 View on HN

this was my next step. webassembly? what engine are you using, and do you still need to code the multiplayer networking yourself?

oneoff786 Oct 18, 2022 View on HN

Good luck doing networked multiplayer for that setup though

reificator Jul 19, 2018 View on HN

My understanding is that the server is not for realtime. Realtime gameplay is peer to peer.

Kiro Sep 20, 2013 View on HN

How does real-time multiplayer work in the browser when there's no support for UDP?

kabdib May 28, 2022 View on HN

Why not use Valve's game networking stuff? Just curious.

vintermann May 27, 2022 View on HN

That's a hilarious idea, but good luck writing the netcode to that!