Surchargés Live - Episode 03 - Accelerometer and Streams API
summary
A live-coding session builds a tiny multiplayer phone-shaking game using the Accelerometer API in the browser to read device motion, and a Node/Express server with ws WebSockets where pages open protocol-tagged sockets and exchange simple JSON messages to register players and broadcast amplitudes. The talk contrasts that WebSocket approach with an alternative using the Streams API to provide better backpressure and support many more concurrent players, and points to demo code and results published on GitHub.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 3:10Project idea origin
- 8:27Server setup and WebSocket
- 13:30Client-server communication
- 23:38Game initialization and UI
- 31:35Player management and validation
- 42:01Mobile testing and debugging
- 44:48Accelerometer integration
- 46:16Streams API vs WebSocket
- 49:03Conclusion and Q&A








