Yes, I prefer SSE when only server to client comm is needed. Really easy and works well on a single HTTP connection.
On Wednesday, October 23, 2024 at 4:45:07 PM UTC+2 Zane Attahri wrote: > Second this, and go ever further. > > If you don’t need bi-directional communication, SSE are almost always the > better choice. Simpler to implement, standard, and easier to consume by > non-browser clients. > > > On Oct 23, 2024, at 10:37 AM, Brian Hatfield <bmhat...@gmail.com> wrote: > > > > I don't think it's quite so binary. Websockets are a lot more complex, > require more sophisticated endpoints and load balancing. SSE has fine > browser support in 2024, minus the ability to set auth headers. I think for > cases with unidirectional communication, SSE is a choice worth evaluating > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e450ef41-f9b8-4733-9cc0-b0bedc3098een%40googlegroups.com.