@pocketrts/net
Host a room, join by code, and exchange messages over WebRTC.
On the demo page, create a room as Player A and join with its code as Player B. Chat, then press Leave as Player A and watch Player B take over as host.
TypeScript libraries for multiplayer rooms, synchronized simulations, and grid-based strategy games. Explore the code and try the demos in your browser.
Host a room, join by code, and exchange messages over WebRTC.
On the demo page, create a room as Player A and join with its code as Player B. Chat, then press Leave as Player A and watch Player B take over as host.
Advance the same simulation on every peer and compare checksums to detect divergence.
Three simulated players run one match in a single page, with no server. Freeze, cut off, or desync a player and watch the host react.
Reproduce calculations, random sequences, and state checksums from the same inputs.
Find paths, trace sight lines, and arrange units into formations on a grid.