~/talk

WebSockets: The Real-Time Avengers

Talkat CityJS New Delhi 2024 · 2024-11-16..11-17· [javascript, web-platform]
slides:none on file

Live code builds a real-time voting app using WebSockets over Cloudflare Workers and Durable Objects, showing a working two-client demo that updates both browsers instantly. Demo uses a copy of the docs template, switches to party-server to reduce boilerplate (claimed ~12 lines), adds per-room routing, and persists counts to KV storage so votes survive restarts. Setup runs in roughly 15–18 minutes of demo time and successfully broadcasts votes and room-scoped messages.

AI-written summary · about

  1. 0:00Introduction to WebSockets
  2. 2:42Limitations of old real-time tech
  3. 5:15How WebSockets work
  4. 7:20Building a WebSocket server
  5. 12:39Live demo setup
  6. 15:54Enhancing the demo with PartyKit
  7. 20:14Frontend integration
  8. 23:51Adding persistent storage
  9. 28:05Conclusion and resources
~/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.