Fix for issue #76, added the WaitTime property to the WebSocketServer class

This commit is contained in:
sta
2014-09-27 14:42:39 +09:00
parent 7458f65033
commit ae6c41c64c
5 changed files with 101 additions and 46 deletions
@@ -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