203 check for disconnect

This commit is contained in:
barelyprofessional
2026-02-08 20:15:35 -06:00
parent e7c309582a
commit d0cabbf759

View File

@@ -650,6 +650,11 @@ public class ChatBot
_logger.Error($"Sneedchat disconnected due to {disconnectionInfo.Type}");
_logger.Error($"Close Status => {disconnectionInfo.CloseStatus}; Close Status Description => {disconnectionInfo.CloseStatusDescription}");
_logger.Error(disconnectionInfo.Exception);
if (disconnectionInfo.Exception!.Message.Contains("status code '203'"))
{
_logger.Info("Chat 203'd, getting a new token");
RefreshXfToken().Wait(_cancellationToken);
}
}
private void OnKfWsReconnected(object sender, ReconnectionInfo reconnectionInfo)