Fixed 7tv & Twitch reconnection. Added adbreak, follow, subscription handlers for Twitch. Added multi-chat support. Added support to unsubscribe from Twitch event subs.

This commit is contained in:
Tom
2024-08-06 19:29:29 +00:00
parent 75fcb8e0f8
commit 8014c12bc5
60 changed files with 1064 additions and 672 deletions

View File

@ -23,7 +23,7 @@ namespace TwitchChatTTS.OBS.Socket
public bool Identified { get; set; }
public bool Streaming { get; set; }
public OBSSocketClient(
Configuration configuration,
[FromKeyedServices("obs")] IEnumerable<IWebSocketHandler> handlers,
@ -104,7 +104,8 @@ namespace TwitchChatTTS.OBS.Socket
}
}
public async Task ExecuteRequest(RequestResponseMessage message) {
public async Task ExecuteRequest(RequestResponseMessage message)
{
if (!_handlers.TryGetValue(7, out var handler) || handler == null)
{
_logger.Error("Failed to find the request response handler for OBS.");