Beispiel #1
0
        private async void InitConnection()
        {
            ClientAPI = await ConnectToClient();

            ClientAPI.Disconnected += async(e, a) =>
            {
                State.Client.State.LeagueDisconnected();
                Logging.Info("Client Disconnected! Attempting to reconnect...");
                await ClientAPI.ReconnectAsync();

                State.Client.State.LeagueConntected();
                Logging.Info("Client Reconnected!");
            };
        }