The htmx:after:sse:message event fires after an SSE message has been processed and swapped into the DOM.
When It Fires
After the message content has been successfully swapped.
Event Detail
ctx- Request contextmessage- Message object withdata,event, andidproperties
Example
htmx.on('htmx:after:sse:message', (evt) => { console.log('SSE message processed:', evt.detail.message.id); // Update UI indicators, scroll to new content });
The message has been fully processed at this point.