Added Twitch exponential backoff for reconnecting.
This commit is contained in:
parent
6810132dde
commit
693a448972
@ -98,7 +98,7 @@ namespace TwitchChatTTS.Twitch.Socket
|
||||
if (reconnecting)
|
||||
{
|
||||
var newClient = GetWorkingClient();
|
||||
await newClient.Connect();
|
||||
await newClient.Reconnect();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,6 +122,8 @@ namespace TwitchChatTTS.Twitch.Socket
|
||||
await ConnectAsync(URL);
|
||||
}
|
||||
|
||||
public async Task Reconnect() => await Reconnect(_backoff, async () => await Connect());
|
||||
|
||||
public void Identify(string sessionId)
|
||||
{
|
||||
Identified = true;
|
||||
|
Loading…
Reference in New Issue
Block a user