5 Commits

Author SHA1 Message Date
scriptogre
2f9318a4cd
add demo for custom events via SSE in manual tests 2025-10-28 17:19:54 +02:00
scriptogre
314a540bc8
replace <partial> with <htmx-action type="partial"> 2025-10-28 16:29:07 +02:00
scriptogre
afb1af04e1
add server-sent events (sse) streaming support
Implement native SSE handling with configurable stream modes (once/continuous), automatic reconnection with exponential backoff, and lifecycle events.

Streams are configured via hx-stream attribute or htmx.config.streams global defaults.

Update test infrastructure with ReadableStream-based mocking utilities.

# Conflicts:
#	src/htmx.js
2025-10-28 16:13:43 +02:00
scriptogre
2ac86e2c44
update SSE implementation
- replace previous implementation with a simple fetch-based approach
- long-lived streams still to be implemented using @microsoft/fetch-event-source, but SSE tests need to be restructured
2025-10-27 15:39:16 +02:00
Carson Gross
2d0839a928 move code into four branch 2025-10-26 13:26:44 -06:00