SSE 101 — Final Quiz¶
Everything from the course in one self-test. Answers are graded instantly (single-choice auto-submits; multi-choice needs all correct boxes; blanks are case-insensitive). Your score is saved in the browser — refresh to retry.
Aim for 10/10 before calling yourself SSE-fluent. 🎯
Round 1 — Fundamentals¶
An SSE "event" on the wire is…
The header that makes a response an SSE stream is Content-Type: <!--BLANK_PLACEHOLDER_0-->
Which of these are valid SSE fields? (select all)
True or false: the browser client library for SSE must be installed via npm.
Round 2 — The Client¶
new EventSource("/events") sends which request?
Events with event: tick on the wire are received with…
es.readyState inside onerror is 0. The stream is…
Name one way to send a credential over native EventSource despite the "no custom headers" limit: use a -based session or a token in the query string.
Round 3 — Reliability & Production¶
On reconnect, the browser automatically sends which header?
Why did your events arrive in 30-second clumps behind nginx?
Which practices keep SSE healthy in production? (select all)
Your app needs the client to stream cursor positions live. SSE is…
Scoring
- 10–12: Ship it. Go read the exercises and break the demo on purpose.
- 7–9: Solid. Skim the protocol page and reliability for the misses.
- <7: Rerun the demo walkthrough with
curl -Nopen — watching real bytes makes it click fast.