Fix for issue #76, added the WaitTime property to the WebSocketServer class
This commit is contained in:
@@ -86,21 +86,6 @@ namespace WebSocketSharp.Server
|
||||
}
|
||||
}
|
||||
|
||||
internal TimeSpan WaitTime {
|
||||
get {
|
||||
return _waitTime;
|
||||
}
|
||||
|
||||
set {
|
||||
if (value == _waitTime)
|
||||
return;
|
||||
|
||||
_waitTime = value;
|
||||
foreach (var session in Sessions)
|
||||
session.Context.WebSocket.WaitTime = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Properties
|
||||
@@ -224,6 +209,27 @@ namespace WebSocketSharp.Server
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the wait time for the response to the WebSocket Ping or Close.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// A <see cref="TimeSpan"/> that represents the wait time.
|
||||
/// </value>
|
||||
public TimeSpan WaitTime {
|
||||
get {
|
||||
return _waitTime;
|
||||
}
|
||||
|
||||
internal set {
|
||||
if (value == _waitTime)
|
||||
return;
|
||||
|
||||
_waitTime = value;
|
||||
foreach (var session in Sessions)
|
||||
session.Context.WebSocket.WaitTime = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
Reference in New Issue
Block a user