Hacker News new | past | comments | ask | show | jobs | submit login

People often forget that you have to poll to handle lost network connections, IP changes, etc., so there isn't always a real-world win to web sockets.



How about reconnecting the websocket from the client?


Sounds like polling. On an inactive connection, whatever it is, you have to always be polling to see if the connection is still alive.


What do you mean? The client knows when the websocket connection goes down and just reconnects. How is this polling?


Because it always needs some sort of keep alive, which is many times hidden inside the client/web framework


But isn't a keep alive bit better than a "full" polling?




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: