EventSource (Server-Sent Events)
Safe to use with polyfillapiServer-sent events are real-time events emitted by the server and received by the browser.
- Verdict
- Safe to use
- Category
- JavaScript APIs
- Browser support
- Can I Use
- Works in
- all modern browsers
Should you use EventSource (Server-Sent Events) in 2026?
The main difference to WebSockets is that server-sent events work over regular HTTP and can therefore be replicated entirely using JavaScript.
EventSource isn’t available in any version of Internet Explorer and still under consideration for Edge.
See MDN web docs for more details.
Please