//private System.Threading.Tasks.Task HubConnection_Closed(Exception arg) //{ // //} public void Disconnect() { Chat(GetExitMessage()); Twitch.Disconnect(); if (checkChatRoomTimer != null) { checkChatRoomTimer.Dispose(); } if (autoSaveTimer != null) { autoSaveTimer.Dispose(); } allViewers.Save(); obsWebsocket.Disconnect(); }