proud-librarian-99598
10/05/2022, 10:12 AMdelay or throttle with SSE? So should hx-trigger="sse:somethingChangedEvent throttle:1s" work to only do the hx-get on that element maximum 1 time per second?
2) I notice that the htmx:sseMessage event is only emitted if there is an hx-trigger on that element with an sse prefix. What I would like to do is to add an htmx:sseMessage event listener so I can use event.detail.data to get the data from the SSE message and manually trigger the hx-get that is on the element that matches with the value in the data of the SSE message.
Or alternatively, someway to do hx-trigger="sse:somethingChangedEvent[filterEvent()]" where filterEvent would get access to the data in the SSE message.