Socket.IO Unity
Multiplayer in the browser

Real-time multiplayer for Unity — lobby system, player sync, and host migration over Socket.IO v4. Open two tabs to see it live.

WebGL Ready Socket.IO v4 Unity 2020.1+ v1.3.1 MIT
Interactive Demo First load may take ~40 seconds — server wakes from idle
Loading…

WebGL build not deployed yet

Add the Unity WebGL output to docs/Build/ and push — this page loads the game automatically.

1 Unity → File → Build Settings → WebGL → Build
2 Copy output into docs/Build/
3 GitHub Settings → Pages → Source: /docs → Save
4 Open two tabs at this URL — each becomes a separate player

How to test multiplayer

  • Open two tabs at this URL
  • Both connect to the same server
  • Move in one — see it in the other

What this demo shows

  • Create or join a room by code
  • Host starts match, game begins
  • Real-time position sync at 20Hz

Deploy your own build

Unity → File → Build Settings → WebGL → Build. Copy the output to docs/Build/ and push to enable the live player above.