Skip to content

Align hx-sse events with hx-multipart & hx-ws - #3961

Merged
1cg merged 3 commits into
bigskysoftware:four-devfrom
scriptogre:4.0/align-sse-message-hooks
Aug 15, 2026
Merged

Align hx-sse events with hx-multipart & hx-ws#3961
1cg merged 3 commits into
bigskysoftware:four-devfrom
scriptogre:4.0/align-sse-message-hooks

Conversation

@scriptogre

@scriptogre scriptogre commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Aligns SSE message hooks with the other streaming extensions.

// htmx:sse:before:message
{ message, cancelled, waitUntil }

// htmx:sse:after:message
{ message }

Adds:

  • waitUntil(promise) to delay processing
  • cancelled = true or preventDefault() to skips the message

PR #3960 separately adds connection to event detail.

@scriptogre scriptogre changed the title Align SSE message hooks with streaming hooks Align hx-sse and hx-multipart event details Aug 14, 2026
@scriptogre scriptogre changed the title Align hx-sse and hx-multipart event details Align hx-sse events with hx-multipart & hx-ws Aug 14, 2026
@1cg
1cg force-pushed the 4.0/align-sse-message-hooks branch from 9b01bbe to 42b115c Compare August 15, 2026 17:09
@1cg
1cg merged commit 2448b31 into bigskysoftware:four-dev Aug 15, 2026
3 checks passed
@scriptogre
scriptogre deleted the 4.0/align-sse-message-hooks branch August 15, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants