News for hackers. Stuff that matters.
Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We... by cbsmith on Monday March 18, 2024 @02:42PM (#39748254)
Honestly, all the techniques for this stuff have their problems, including the refresh button.
Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We... by rvanmil on Monday March 18, 2024 @02:51PM (#39748393)
True, though when carefully implemented it’s the most reliable option I guess.
Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We... by cbsmith on Monday March 18, 2024 @02:54PM (#39748426)
I've switched to using SSE to get around problems with the refresh button. It's pretty simple and reliable.
Re:WebSockets vs. Server-Sent-Events vs. Long-Polling vs. We... by rvanmil on Monday March 18, 2024 @03:32PM (#39748903)
That’s great. Unfortunately I’ve seen SSE fail quite a few times in the scenario I described.