|
|
|
|
|
by benwilber0
425 days ago
|
|
I pretty much always prefer SSE over websockets just because of the simplicity end-to-end. It's "just HTTP", so all the HTTP-based tech and tools apply out-of-the-box without any really special configuration that is required for WS. Curl (or even netcat) "just works", no special client. I don't have to do any special CDN configuration to proxy connections or terminate SSL aside from just turning off buffering. Websockets requires almost a completely new L7 stack and tons of special configuration to handle Upgrade, text or data frames, etc. And once you're out of "HTTP mode" you now have to implement the primitive mechanics of basically everything yourself, like auth, redirects, sessions, etc. It's why I originally made Tiny SSE which is a purpose-built SSE server written in Rust and programmable with Lua. https://tinysse.com https://github.com/benwilber/tinysse |
|
IMO 'just works' means Apache suupports it out of the box with a simple config file and you can just start sending messages to client IPs.