Hacker News new | ask | show | jobs
by johnnyenn 4 days ago
The drop is pre-simulated over SSE anyway, so adding a bit more delay between frames would fix this. Right now normal ping moves the odds before the click even hits the server.
1 comments

> The drop is pre-simulated over SSE anyway

Trying to understand this phrase but its meaning escapes me

The server calculates the balls’ motions and uses Server Sent Events to stream the results to the browser.
Ah so like a replay! Is SSE a specific term of art or does any event generated on a web server sent to a client count regardless of technology? At the risk of sounding sarcastic (I’m not), why did you capitalize S, S, and E?
Jinx.
It's a specific web tech: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...

But in colloquial usage I'd expect people probably do use that phrase referring to any system for events sent to clients by servers, such as long polling or websockets.

> But in colloquial usage I'd expect people probably do use that phrase referring to any system for events sent to clients by servers, such as long polling or websockets.

I feel seen. I consider async web socket data to be SSE.

The backend runs the physics upfront and just streams the coordinates to the browser via Server-Sent Events.