spec checked
MDN Web Docs: EventSource
Documents EventSource as a persistent connection for receiving text/event-stream events and closing the connection when needed.
Pattern Decisions This Source Supports
| Pattern | Supported decision | Required contract | Claim note |
|---|---|---|---|
| Streaming response | Choose streaming response when partial generated output is useful before the full answer is ready and the product can explain partial versus final state. | The UI never presents an active stream as a complete answer until the terminal event or final validation state arrives. | Supports persistent event-stream connections and explicit close behavior. |
Evidence Role
This source is treated as spec evidence. Use it to validate the decision rules above, not as a visual style reference.
Publisher: Mozilla Developer Network. Last checked: .