Websocket is getting disconnected several times (may be because of network failures). However, it's not able to connect automatically. kws.isconnected() returns false and kws.reconnect() returns true. But the socket does doesn't get reconnected again .