0
kicks
Keeping WebSockets alive
The problem with using stateful connections on an imperfect place as the internet is that connections might drop. The server or an intermediary can drop the connection due to an idle timeout. Even a temporary problem at the server or a local network hiccup might kill your connection.
If you aren't prepared to handle these scenarios, you will not be able to fully rely on WebSockets.