Server-Sent Events (SSE) is an HTTP mechanism in which the server sends the browser a one-way stream of text events over a connection kept open, with the text/event-stream type. It is often used to broadcast a streamed model response.
Example
const es = new EventSource('/stream');
es.onmessage = (e) => console.log(e.data);