Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We...
by apitman on Monday March 18, 2024 @04:40PM
(#39749730)
One limitation is SSE is text-only, so you can't efficiently send binary data. You have to encode it as base64 or similar.
Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We...
by niutech on Saturday March 23, 2024 @07:04AM
(#39798995)
There is another alternative to base64: https://github.com/luciopaiva/binary-sse
Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We...
by jacobr1 on Monday March 18, 2024 @03:09PM
(#39748596)
This presumes the majority of your use case is server-client, but otherwise yes.
Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We...
by ksec on Monday March 18, 2024 @08:56PM
(#39751884)
Was thinking exactly the same thing. H2 with SSE solves 99% of problems? I was wondering if we could push SSE even further along with lower latency, memory usage and CPU resources than doing something completely different.
(This all assumes you only care about maintaining a connection when the tab is in the foreground.)
I’m wondering what problems people have run into when they tried this.