~/talk

Surchargés Live - Episode 03 - Accelerometer and Streams API

TalkinFrenchat Devoxx France 2021 · 2021-09-29..10-01· [web-platform, web-performance]
links:none on file
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 3:10Project idea origin
  3. 8:27Server setup and WebSocket
  4. 13:30Client-server communication
  5. 23:38Game initialization and UI
  6. 31:35Player management and validation
  7. 42:01Mobile testing and debugging
  8. 44:48Accelerometer integration
  9. 46:16Streams API vs WebSocket
  10. 49:03Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.