Reference
Shared vocabulary for this workspace. Lessons stick to these meanings.
text/event-stream. Client API:
EventSource.
open / message / named events /
error, auto-reconnects, and exposes
readyState and close().
data:,
event:, id:, retry:) separated
by blank lines. Defined in the
HTML Living Standard.
id in the Last-Event-ID request header so
the server can resume. Resume is only as good as server support.
EventSource: after a drop (non-fatal), the UA
waits (default ~few seconds; tunable via retry:) and
reconnects. Fatal failures or close() stop retrying.
EventSource init option to include cookies/credentials on
cross-origin requests. Does not let you set arbitrary headers (e.g.
custom Authorization).