←back to thread

170 points bko | 2 comments | | HN request time: 0.001s | source
1. pm2222 ◴[] No.43649845[source]
My summary: one single copy of state is maintained on server side and clients are updated through polling or SSE.
replies(1): >>43651540 #
2. andersmurphy ◴[] No.43651540[source]
Basically. 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).