EventSource: The under appreciated sibling of WebSockets
summary
EventSource is a one-way streaming option that the talk shows can be implemented with 20 lines of JavaScript (server and client), a 200 response that sets the text/event-stream header, and a simple loop that writes "id", "event", "data" frames; the demo is an emoji chat that works but exposes input-validation issues. It compares polling, long polling, WebSockets and frameworks like Socket.IO/SignalR that auto-upgrade transports, highlights HTTP/2 multiplexing making SSE nearly as efficient as WebSockets, and notes SSE cannot set custom headers so auth uses cookies.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:11Why EventSource overlooked
- 4:02Speaker background
- 5:07HTTP fundamentals
- 11:09Polling as the first real-time technique
- 13:37Long polling limits
- 17:30WebSockets shift
- 24:57Server-Sent Events
- 30:18Live EventSource demo
- 32:21Real-time streaming uses
- 33:49Frameworks handling real-time
- 37:23Why EventSource matters
- 38:47Q&A








