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

> The advantage of long-polling over websockets is code reuse and simplicity

I really don’t get this. What is simpler in polling than websockets? They both establish a connection via the same route and protocols, only WS can “long poll” after the initial payload for free. There is little reason to replace that with a comet/long poll implementation which is undoubtedly more complex and prone to break.

And what about SSE? Now that is simple.



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

Search: