htmx-extensions icon indicating copy to clipboard operation
htmx-extensions copied to clipboard

No way to proxy SSE data

Open lsmenicucci opened this issue 7 months ago • 7 comments

It would be interesting if there was a way to update the server side event's data before they got swapped into the elements.

The main reason for this is that SSE specification uses \n\n as an event terminator and the way to send multiline data is to base64 encode it before. However, there is no way to decode it on the frontend before the swap. At least not to my knowledge.

lsmenicucci avatar Jul 13 '24 06:07 lsmenicucci