Auto reconnect websocket server