Fixed Twitch subscriptions. Fixed typos. Fixed Twitch websocket reconnection.

This commit is contained in:
Tom
2024-08-06 21:15:05 +00:00
parent eb8bfdf6b0
commit 8a0e55bb95
11 changed files with 24 additions and 20 deletions

View File

@@ -22,6 +22,7 @@ namespace TwitchChatTTS.Twitch.Socket
public event EventHandler<EventArgs> OnIdentified;
public string UID { get; }
public string URL;
public bool Connected { get; private set; }
public bool Identified { get; private set; }
@@ -50,6 +51,7 @@ namespace TwitchChatTTS.Twitch.Socket
_messageTypes.Add("session_reconnect", typeof(SessionWelcomeMessage));
_messageTypes.Add("notification", typeof(NotificationMessage));
UID = Guid.NewGuid().ToString("D");
URL = "wss://eventsub.wss.twitch.tv/ws";
}