Event streams all the way down (opens in new tab)
SSE is a really great idea. With a single request you can create a server driven stream of events. Using this for driving Datastar’s htmx like fragments plugin is a natural fit. The only problem is that SSE doesn’t support anything but the GET method. This means that you can’t use SSE to send data to the server. This is a problem for htmx, because htmx uses the POST method to send data to the server. So, what to do?
Read the original article