I am currently missing a way to listen for SSE close events. I think it would be fair to allow for listing to such events, in order to show some information to the user, for example.
I could imagine the two following ways:
dispatch an htmx:sseClose event
dispatch the htmx:sseBeforeMessage and/or htmx:sseMessage event(s), even when the message type equals the sse-close message type.
Please let me know what you prefer or how I could do it instead, thanks!
Hi,
I am currently missing a way to listen for SSE close events. I think it would be fair to allow for listing to such events, in order to show some information to the user, for example.
I could imagine the two following ways:
htmx:sseClose
eventhtmx:sseBeforeMessage
and/orhtmx:sseMessage
event(s), even when the message type equals thesse-close
message type.Please let me know what you prefer or how I could do it instead, thanks!