[Modify] Edit it
This commit is contained in:
parent
eb379b6f76
commit
5fd07ec5fe
@ -2488,17 +2488,35 @@ namespace WebSocketSharp
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Closes the WebSocket connection with the specified <paramref name="code"/>,
|
/// Closes the connection with the specified <paramref name="code"/>.
|
||||||
/// and releases all associated resources.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This method does nothing if the current state of the connection is
|
/// This method does nothing if the current state of the connection is
|
||||||
/// Closing or Closed.
|
/// Closing or Closed.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="code">
|
/// <param name="code">
|
||||||
/// One of the <see cref="CloseStatusCode"/> enum values that represents
|
/// <para>
|
||||||
/// the status code indicating the reason for the close.
|
/// One of the <see cref="CloseStatusCode"/> enum values.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// It represents the status code indicating the reason for the close.
|
||||||
|
/// </para>
|
||||||
/// </param>
|
/// </param>
|
||||||
|
/// <exception cref="ArgumentException">
|
||||||
|
/// <para>
|
||||||
|
/// <paramref name="code"/> is
|
||||||
|
/// <see cref="CloseStatusCode.ServerError"/>.
|
||||||
|
/// It cannot be used by clients.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// -or-
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// <paramref name="code"/> is
|
||||||
|
/// <see cref="CloseStatusCode.MandatoryExtension"/>.
|
||||||
|
/// It cannot be used by servers.
|
||||||
|
/// </para>
|
||||||
|
/// </exception>
|
||||||
public void Close (CloseStatusCode code)
|
public void Close (CloseStatusCode code)
|
||||||
{
|
{
|
||||||
if (_client && code == CloseStatusCode.ServerError) {
|
if (_client && code == CloseStatusCode.ServerError) {
|
||||||
|
Loading…
Reference in New Issue
Block a user