The EventSource API creates a connection to a server and listens to a stream of events sent by the server.
EventSource