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

Pretty much. That, and I don't think you can really send data back to the server over a long-polling connection - if you can, it's a giant hack - but WebSockets is explicitly designed for bidirectionality.

SSE, on the other hand, basically is long-polling and keep-alives, but with better defined behavior and a nicer API on the client side.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: