From dcc569a8bd1e71bfd8a24b10d2761f1b6558cda1 Mon Sep 17 00:00:00 2001 From: Elizabeth Schneider Date: Wed, 25 Dec 2019 07:02:25 -0700 Subject: [PATCH] Added pub sub message converter --- Fritz.Twitch/PubSub/Proxy.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Fritz.Twitch/PubSub/Proxy.cs b/Fritz.Twitch/PubSub/Proxy.cs index b1af7f06..cc01b7ec 100644 --- a/Fritz.Twitch/PubSub/Proxy.cs +++ b/Fritz.Twitch/PubSub/Proxy.cs @@ -20,17 +20,11 @@ public class Proxy : IDisposable { private ClientWebSocket _Socket; private System.Timers.Timer _PingTimer; private System.Timers.Timer _PongTimer; - private System.Timers.Timer _ReconnectTimer = new System.Timers.Timer(); - private ConfigurationSettings _Configuration; - private ILogger _Logger; + private readonly ConfigurationSettings _Configuration; + private readonly ILogger _Logger; private static bool _Reconnect; - private static readonly TimeSpan[] _ReconnectTimeouts = new TimeSpan[] { - TimeSpan.FromSeconds(10), TimeSpan.FromSeconds(30), TimeSpan.FromMinutes(1), TimeSpan.FromMinutes(5) - }; - - public Proxy(IOptions settings, ILoggerFactory loggerFactory) - { + public Proxy(IOptions settings, ILoggerFactory loggerFactory) { InitializeMethodStrategies();