3 ms·
My summary: one single copy of state is maintained on server side and clients are updated through polling or SSE.
by pm2222 1y ago
My summary: one single copy of state is maintained on server side and clients are updated through polling or SSE.
- andersmurphy 1y agoBasically. It's generating the html for the game state every 200ms (regardless of the number of connected users) and pushing it down to any connected clients via SSE. The magic is Brtoli + SSE + a properly sized context window means it runs well even on 3G connections (you can play with this in chrome dev under the network tab throttle option).