Added support to test against Twitch's mocked websocket & webserver. Fixed some connection problems.

This commit is contained in:
Tom
2024-08-07 19:32:44 +00:00
parent 3d077181fa
commit 87f3623ed6
5 changed files with 40 additions and 15 deletions

View File

@ -360,6 +360,9 @@ namespace TwitchChatTTS.Hermes.Socket
catch (Exception ex)
{
_logger.Error(ex, "Failed to disconnect from Hermes websocket server.");
Ready = false;
LoggedIn = false;
Connected = false;
}
UserId = null;
_heartbeatTimer.Enabled = false;
@ -381,6 +384,9 @@ namespace TwitchChatTTS.Hermes.Socket
catch (Exception ex)
{
_logger.Error(ex, "Failed to disconnect from Hermes websocket server.");
Ready = false;
LoggedIn = false;
Connected = false;
}
}