How do server-sent events actually work?
The HTML5 doctor site has a great write-up on server-sent events, but I’ll try to provide a (reasonably) short summary here as well. Server-sent events are, at its core, a long running http connection, a special mime type (text/event-stream) and a user agent that provides the EventSource API. Together, these make the foundation of a … Read more