Server-Sent Events (SSE) Test

1. One-shot Stream

Server sends multiple messages, then closes. Each message replaces the content.

2. Persistent Stream

Long-lived connection. Server sends <partial> tags to update multiple targets.

3. hx-sse:close — Cancel on Event

Server sends a few messages then a done event. The connection should close cleanly with no AbortError in the console. Check two variants: server keeps the response open (regression #4078) and server closes it simultaneously.

Status:

Open DevTools console — there should be no AbortError after closing.

4. Custom Events from SSE

SSE event: fields trigger custom DOM events. Listen with hx-on: attributes.

0%