Fix bug where the websocket would not reconnect after being idle for 10+mins