Auto reconnecting websocket client