News for hackers. Stuff that matters.
Re:HTTP Feeds by mromanuk on Monday April 04, 2022 @06:37AM (#30905041)
I had previously used SSE in a project and had no idea it existed or that it was widely supported by most browsers. It's a beautiful and straightforward technology, but it doesn't seem to be as widely used as it should be, and more tooling is required. Also more tooling is required.
Re:HTTP Feeds by 0xcoffee on Monday April 04, 2022 @06:44AM (#30905078)
100% onboard with better tooling.

Starting with out of the box swagger support: https://github.com/OAI/OpenAPI-Specification/issues/396

Shame they are not interested in adding it.

Re:HTTP Feeds by masklinn on Monday April 04, 2022 @07:49AM (#30905552)
The really huge issue with SSE, and the reason why it’s historically been dismissed, is that it us subject to (and counts towards) the HTTP 1.1 domain connection limit.

Sadly that makes it a bit of a pain in the ass to manage for sites served as (/ compatible with) http 1.1.

Re:HTTP Feeds by jslakro on Monday April 04, 2022 @10:59AM (#30907421)
I know SSE works on scenarios with few or no state updates, like in dashboard UI's. What about other cases where they deal with input data? like in a chat/game
Re:HTTP Feeds by mromanuk on Monday April 04, 2022 @12:45PM (#30908787)
That’s the beauty, the client just do a normal HTTP request. It really simplify the system.