~/talk

EventSource: The under appreciated sibling of WebSockets

Talkat NDC Oslo 2024 · 2024-06-10..06-14· [web-platform, javascript]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:11Why EventSource overlooked
  3. 4:02Speaker background
  4. 5:07HTTP fundamentals
  5. 11:09Polling as the first real-time technique
  6. 13:37Long polling limits
  7. 17:30WebSockets shift
  8. 24:57Server-Sent Events
  9. 30:18Live EventSource demo
  10. 32:21Real-time streaming uses
  11. 33:49Frameworks handling real-time
  12. 37:23Why EventSource matters
  13. 38:47Q&A
~/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.