4
you are viewing a single comment's thread
view the rest of the comments
[-] ultimaluz@lemmy.world 2 points 1 day ago

for a multiplayer browser game I ended up skipping websockets and using SSE for everything that goes server to client, and plain POST requests for the actions. it's just http so the reverse proxy, cookies and reconnects work without doing anything special, and EventSource reconnects by itself. one gotcha if you use express with compression middleware, exclude the SSE route or the events get buffered and arrive in chunks. websockets make more sense if the client sends a lot, mine mostly listens

this post was submitted on 14 Oct 2026
4 points (83.3% liked)

JavaScript

2834 readers
14 users here now

founded 3 years ago
MODERATORS