Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My summary: one single copy of state is maintained on server side and clients are updated through polling or SSE.


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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: