refresh websocket on connection lost