[Modify] Edit it

This commit is contained in:
sta 2017-07-29 18:00:21 +09:00
parent 7e62581cc3
commit 0fb0198a34

View File

@ -2807,22 +2807,41 @@ namespace WebSocketSharp
} }
/// <summary> /// <summary>
/// Closes the WebSocket connection asynchronously with the specified /// Closes the connection asynchronously with the specified
/// <paramref name="code"/>, and releases all associated resources. /// <paramref name="code"/>.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// <para> /// <para>
/// This method does nothing if the current state of the connection is /// This method does not wait for the close to be complete.
/// Closing or Closed.
/// </para> /// </para>
/// <para> /// <para>
/// This method does not wait for the close to be complete. /// And this method does nothing if the current state of
/// the connection is Closing or Closed.
/// </para> /// </para>
/// </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 CloseAsync (CloseStatusCode code) public void CloseAsync (CloseStatusCode code)
{ {
if (_client && code == CloseStatusCode.ServerError) { if (_client && code == CloseStatusCode.ServerError) {