- 54lessons
- 4guided projects
- 8module checkpoints
- 1.1hours of video
What you'll learn
- Choose between polling, Server-Sent Events and WebSocket for stated requirements and explain the opening handshake and frame rules.
- Define, validate, version and test a message contract including binary frames, acknowledgements and errors.
- Synchronize state with snapshots, deltas, revisions, conflict rules, presence and durable versus ephemeral events.
- Recover from disconnections with backoff, resume by sequence, bounded replay, deduplication, ordering control and an outbox.
- Deliver and demonstrate a realtime collaborative status board with reconnect and access tests.
Skills you'll gain
- Realtime transports
- Connection lifecycle
- Message schemas
- Rooms
- authorization
- State synchronization
- Reconnect
- ordering
- Backpressure
- limits
- Realtime project
Tools you'll use
- WebSocket (RFC 6455)
- Server-Sent Events
- Node.js
- Browser JavaScript
- fetch
Details to know
- Certificate on completionIssued after your final project is reviewed
- 8 module checkpointsA quiz and a practical task close each module
- Self-pacedStudy any time; your progress is saved
How every lesson works
Each lesson follows the same four steps, so you always know what comes next.
- 01
Watch & Learn
A short animated video explains one idea at a time.
- 02
Guided Practice
Work through an example step by step and check the result.
- 03
Quiz & Challenge
Short questions check the idea has landed before you move on.
- 04
Mini Project
Build something useful from a project brief.
Learn at your own pace
This is a self-paced course. There are no live classes and no fixed timetable.
- Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
- Pick up where you left offYour progress is saved to your account.
- Ask when you're stuckUse Ask Mentor inside the learning platform.
Your path in 3 phases
Each phase ends with something you have built and checked.
- 01
Modules 1 to 3
Transports, lifecycle and messages
Choose between polling, SSE and WebSocket, manage connections from handshake to close, and define a validated, versioned message contract.
You build: Guided project: Lifecycle-safe echo service.
- 02
Modules 4 to 6
Rooms, sync and reconnect
Authenticate rooms and check every message, keep clients consistent with snapshots and revisions, and resume after disconnects with ordering and deduplication.
You build: Guided project: Contract and access layer; Synchronised board with recovery.
- 03
Modules 7 to 8
Limits and the realtime project
Protect the service with payload, rate and connection limits and metrics, then build and demonstrate the collaborative status board.
You build: Guided project: Hardened and observable service.
Full curriculum
8 modules and 54 lessons, 31 to 53 hours of study
01Realtime transports7 lessons, 3 to 5 hours
Lessons
- Polling cost and the case for push
- Server-Sent Events with EventSource
- The opening handshake: Upgrade, key and accept
- Frames, opcodes, masking and control frames
- Choosing a transport from requirements
- A first ws server and browser client
- wss, mixed content and proxies that forward Upgrade
After this module you can
- Measure how many HTTP requests short polling and long polling spend per delivered update and explain why push transports exist.
- Implement a text/event-stream endpoint and a browser EventSource client, and explain id, retry and automatic reconnection with Last-Event-ID.
- Explain why pages served over https must use wss, what a TLS-terminating proxy must forward, and diagnose a failed upgrade from the HTTP status.
02Connection lifecycle7 lessons, 3 to 5 hours
Lessons
- readyState and the order of events
- Close handshake and close codes
- Abnormal closure and what 1006 hides
- Heartbeats with ping and pong
- Graceful shutdown
- Upgrade routing with noServer and early rejection
- Per-connection state and registry cleanup
After this module you can
- Predict the sequence of readyState values and events (open, message, error, close) for a successful session, a refused handshake and a server-initiated close.
- Close connections with an accurate code and reason and interpret received codes 1000, 1001, 1002, 1003, 1008, 1009, 1011 and the 4000-4999 application range.
- Keep a connection registry keyed by an id with per-socket metadata and prove that every close path removes the entry.
03Message schemas7 lessons, 3 to 5 hours
Lessons
- The JSON envelope: type, id and payload
- Validating inbound payloads and choosing the failure response
- Binary frames and the isBinary flag
- Correlating requests with acknowledgements
- Versioning messages and handling the unknown
- A stable error contract
- Contract tests with fixture files
After this module you can
- Define a message envelope with type, id, v and payload fields and parse inbound text frames safely into it.
- Validate payload fields by type, range and length per message type and decide between an error reply and a close with code 1003, 1007 or 1008.
- Check a messaging contract with golden fixture files of valid and invalid messages that both client and server tests read.
04Rooms and authorization7 lessons, 3 to 5 hours
Lessons
- Rooms as server-side membership sets
- Authenticating the handshake
- Origin checks and cross-site WebSocket hijacking
- One-time connection tickets
- Per-message authorization
- Expiry and revocation of live connections
- Access test matrix and tenant isolation
After this module you can
- Implement join, leave and broadcast for named rooms and keep membership consistent when sockets disconnect.
- Authenticate a WebSocket connection at upgrade time using a mechanism that works from browsers, and reject unauthenticated requests with 401 before the socket exists.
- Prove isolation with an automated matrix of users, rooms and actions that fails when any cross-room leak exists.
05State synchronization7 lessons, 3 to 5 hours
Lessons
- Snapshot plus deltas
- Server authority and optimistic updates
- Revisions and stale update rejection
- Conflict policies: last-write-wins and field-level merge
- Presence and its timeouts
- Ephemeral signals versus durable events
- Fan-out from HTTP writes
After this module you can
- Initialise a client with a full snapshot and keep it current with deltas, ensuring no event is lost between the two.
- Apply a user's edit locally at once, send it, and reconcile or roll back when the server confirms or rejects.
- Accept a REST write from a non-socket client and publish the resulting delta to room subscribers through the same state path.
06Reconnect and ordering7 lessons, 3 to 5 hours
Lessons
- Reconnect with exponential backoff and jitter
- Resynchronising from the last seen sequence
- Gap detection and sequence integrity
- Bounded replay buffers with snapshot fallback
- Idempotent commands and duplicate suppression
- Ordering guarantees and their limits
- Offline outbox and bounded queues
After this module you can
- Reconnect after an unexpected close using exponential backoff with jitter, a cap and a do-not-retry list driven by close codes.
- Resume after reconnect by telling the server the last sequence number received and receiving only the missing events.
- Queue outgoing messages while disconnected, flush them in order after reconnect and apply a drop policy when the queue is full.
07Backpressure and limits7 lessons, 3 to 5 hours
Lessons
- Payload limits with maxPayload
- Slow consumers and bufferedAmount
- Per-connection rate limiting with a token bucket
- Connection caps at upgrade
- Coalescing high-frequency updates
- permessage-deflate trade-offs
- Metrics, structured logs and a bounded load test
After this module you can
- Set maxPayload from the largest legitimate message and verify that oversized messages terminate with code 1009.
- Detect clients that cannot keep up by reading bufferedAmount, and shed load by skipping updates or closing the socket.
- Expose connection and traffic counters, log events without payload secrets, and run a bounded loopback load test that proves limits work.
08Realtime project5 lessons, 2 to 4 hours
Lessons
- Specifying the status board: messages, state and access
- Building the server core
- Building the resilient client
- Access, reconnect and abuse test suite
- Runbook, restart evidence and the demonstration
After this module you can
- Write the project specification: a message catalog, the state model with revisions, the role matrix and the non-goals, before writing server code.
- Implement the server: authenticated upgrade, rooms, validation, role checks, snapshot and delta sync with revisions, and a shared HTTP write path.
- Package the project with setup instructions, configuration table, operational notes and a demonstration that includes a server kill and recovery.
What you'll build
4 guided projects along the way, then a final project.
Lifecycle-safe echo service
after module 2Contract and access layer
after module 4Synchronised board with recovery
after module 6Hardened and observable service
after module 7
Final project
Realtime collaborative status board with reconnect and access tests. Choose one option: Team status board | Live incident room | Shared checklist for events
What you submit
Source repository or archive submission with a README that runs from a clean clone.
How it's reviewed
Trainer-reviewed live demonstration including a kill and recovery and an access denial. Marked against the course project review rubric.
Where you'll use it
- Add live presence and updates to a shared board so every viewer sees the same state.
- Recover clients after a dropped connection without losing or repeating a command.
Roles that use these skills
- Full-stack developer
- Backend developer
- Frontend developer
Earn the certificate by building, not watching
- Complete the lessons and pass each module checkpoint.
- Build your final project and demonstrate it.
- OUTLEARN reviews your project and issues your certificate. It is not issued automatically.
Frequently asked questions
What do I need before starting?
Browser JavaScript and HTTP API design. The diagnostic asks you to write a Node http server with a validated JSON POST route.
How is the project checked?
A trainer-reviewed live demonstration that includes killing the server, recovering state and showing an access denial.
How is WebSockets & Real-Time Applications structured, and is it open now?
It has 8 modules and 54 lessons. It is not yet released to learners.
Be first in when WebSockets & Real-Time Applications opens
Email us and we will tell you as soon as enrolment opens.
Notify me when it opens

