Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The standard way to fix that is to send ping messages every ~15 seconds or something over the SSE stream. If the client doesn’t get a ping in any 20 second window, assume the sse stream is broken somehow and restart it. It’s complex but it works.

The big downside of sse in mobile safari - at least a few years ago - is you got a constant loading spinner on the page. Thats bad UX.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: