Web features explorer

Server-sent events

Widely available
Tags: api Groups: Messaging

The EventSource API creates a connection to a server and listens to a stream of events sent by the server. To learn more, see EventSource, EventSource: EventSource() constructor, EventSource: close() method, EventSource: error event, EventSource: message event, EventSource: open event, EventSource: readyState property, EventSource: url property, EventSource: withCredentials property at MDN.

Compatibility (view on caniuse.com)

Specifications