Free course
Real-time Web Applications Course
Build reliable live interfaces with polling, server-sent events, WebSockets, snapshots, reconnection, backpressure, and graceful degradation.
Prerequisites: JavaScript, HTTP and Node.js
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it. Join my free newsletter and you get this course plus every other book and course I published.
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it.
Your progress
of lessons completed.
Course completed.
What you'll learn
Build and operate a live service-status board that remains correct through disconnects, duplicates, restarts, slow clients, and fallback mode.
Course contents
Choose the channel
Turn “real-time” into requirements and choose polling, SSE, or WebSockets deliberately.
Build an SSE stream
Frame, name, resume, heartbeat, and clean up a one-way event stream.
Build a WebSocket channel
Handle upgrades, messages, authorization, and bounded flow.
Make live state reliable
Survive ordering, duplicates, gaps, reconnects, restarts, and multiple tabs.
Secure, test, and operate
Threat-model, load-test, observe, and degrade the live feature safely.