Skip to content

Commit

Permalink
Fixed hosted services so they run in the background, added PubSubAuth…
Browse files Browse the repository at this point in the history
…Token configuration option
  • Loading branch information
csharpfritz authored and mozts2005 committed Jan 1, 2020
1 parent dcc569a commit c451597
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Fritz.Twitch/PubSub/Proxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ public class Proxy : IDisposable {
private ClientWebSocket _Socket;
private System.Timers.Timer _PingTimer;
private System.Timers.Timer _PongTimer;
private readonly ConfigurationSettings _Configuration;
private readonly ILogger _Logger;
private System.Timers.Timer _ReconnectTimer = new System.Timers.Timer();
private ConfigurationSettings _Configuration;
private ILogger _Logger;
private static bool _Reconnect;

public Proxy(IOptions<ConfigurationSettings> settings, ILoggerFactory loggerFactory) {
private static readonly TimeSpan[] _ReconnectTimeouts = new TimeSpan[] {
TimeSpan.FromSeconds(10), TimeSpan.FromSeconds(30), TimeSpan.FromMinutes(1), TimeSpan.FromMinutes(5)
};

public Proxy(IOptions<ConfigurationSettings> settings, ILoggerFactory loggerFactory)
{

InitializeMethodStrategies();

Expand Down

0 comments on commit c451597

Please sign in to comment.