Added ConnectAsync method to the WebSocket class