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
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help