System.Net.WebSockets.WebSocketBase.KeepAliveTracker.DefaultKeepAliveTracker.ShouldSendKeepAlive C# (CSharp) Method

ShouldSendKeepAlive() public method

public ShouldSendKeepAlive ( ) : bool
return bool
                public override bool ShouldSendKeepAlive()
                {
                    TimeSpan idleTime = GetIdleTime();
                    if (idleTime >= _keepAliveInterval)
                    {
                        return true;
                    }

                    ResetTimer((int)(_keepAliveInterval - idleTime).TotalMilliseconds);
                    return false;
                }