Skip to content

Commit

Permalink
EventSub: increase keepalive grace time from 3s to 5s to see if that …
Browse files Browse the repository at this point in the history
…reduces the amount of reconnects
  • Loading branch information
Felk committed Nov 10, 2024
1 parent 1370ba3 commit cab9e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TPP.Twitch.EventSub/EventSubClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal record WebsocketChangeover(ClientWebSocket NewWebSocket, SessionWelcome
public class EventSubClient
{
private static readonly Encoding Utf8NoBom = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false);
private static readonly Duration KeepAliveGrace = Duration.FromSeconds(3);
private static readonly Duration KeepAliveGrace = Duration.FromSeconds(5);
private static readonly Duration MaxMessageAge = Duration.FromMinutes(10);
private static readonly Task<WebsocketChangeover> NoChangeoverTask =
new TaskCompletionSource<WebsocketChangeover>().Task; // a task that never gets completed
Expand Down

0 comments on commit cab9e6e

Please sign in to comment.