Hardly.Library.Twitch.TwitchIrcConnection.Run C# (CSharp) Method

Run() private method

private Run ( ) : void
return void
        internal void Run()
        {
            while(true) {
                try {
                    while(true) {
                        TwitchChatEvent chatEvent = GetNextChatEvent();
                        RespondToEvent(chatEvent);
                    }
                } catch(IOException connectionException) {
                    Log.error("Irc connection issue: ", connectionException);
                }

                Thread.SleepInSeconds(30);
                Reconnect();
            }
        }