Skip to content

Standardize hx-sse events, config, and legacy support - #3929

Merged
1cg merged 1 commit into
bigskysoftware:four-devfrom
scriptogre:4.0/improve-sse-ext
Jul 31, 2026
Merged

Standardize hx-sse events, config, and legacy support#3929
1cg merged 1 commit into
bigskysoftware:four-devfrom
scriptogre:4.0/improve-sse-ext

Conversation

@scriptogre

@scriptogre scriptogre commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Why

Before:

htmx:before:sse:message
htmx:sse:error

After:

htmx:sse:before:message
htmx:sse:error

Changes

  1. Rename events to htmx:sse:<timing>:<noun>.

  2. Add support for legacy sse-close (previously just sse-connect)

  3. Warn for sse-connect, sse-close, and (now removed) sse-swap.

  4. Resolve config in this order:

    built-in defaults → htmx.config.sse → inherited hx-config
    

@scriptogre scriptogre changed the title Improve SSE events and compatibility Standardize SSE events, config, and legacy support Jul 30, 2026
@scriptogre
scriptogre force-pushed the 4.0/improve-sse-ext branch from 6fa8154 to 5ffbff4 Compare July 30, 2026 19:39
@scriptogre scriptogre changed the title Standardize SSE events, config, and legacy support Standardize hx-sse events, config, and legacy support Jul 30, 2026
@scriptogre scriptogre added htmx 4 Issues specific to htmx version 4 hx-sse labels Jul 30, 2026
@scriptogre
scriptogre force-pushed the 4.0/improve-sse-ext branch from 5ffbff4 to 73440b1 Compare July 30, 2026 20:30
@1cg

1cg commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Thanks Christian!

@1cg
1cg merged commit 1606ea7 into bigskysoftware:four-dev Jul 31, 2026
3 checks passed
@scriptogre
scriptogre deleted the 4.0/improve-sse-ext branch July 31, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

htmx 4 Issues specific to htmx version 4 hx-sse

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants