Browse Source

[Modify] Edit it

pull/298/merge
sta 6 months ago
parent
commit
c5f637cd4d
  1. 24
      websocket-sharp/WebSocket.cs

24
websocket-sharp/WebSocket.cs

@ -2695,7 +2695,7 @@ namespace WebSocketSharp
}
/// <summary>
/// Closes the connection with the specified code and reason.
/// Closes the connection with the specified status code and reason.
/// </summary>
/// <remarks>
/// This method does nothing if the current state of the interface is
@ -2720,17 +2720,6 @@ namespace WebSocketSharp
/// Its size must be 123 bytes or less in UTF-8.
/// </para>
/// </param>
/// <exception cref="ArgumentOutOfRangeException">
/// <para>
/// <paramref name="code"/> is less than 1000 or greater than 4999.
/// </para>
/// <para>
/// -or-
/// </para>
/// <para>
/// The size of <paramref name="reason"/> is greater than 123 bytes.
/// </para>
/// </exception>
/// <exception cref="ArgumentException">
/// <para>
/// <paramref name="code"/> is 1011 (server error).
@ -2757,6 +2746,17 @@ namespace WebSocketSharp
/// <paramref name="reason"/> could not be UTF-8-encoded.
/// </para>
/// </exception>
/// <exception cref="ArgumentOutOfRangeException">
/// <para>
/// <paramref name="code"/> is less than 1000 or greater than 4999.
/// </para>
/// <para>
/// -or-
/// </para>
/// <para>
/// The size of <paramref name="reason"/> is greater than 123 bytes.
/// </para>
/// </exception>
public void Close (ushort code, string reason)
{
if (!code.IsCloseStatusCode ()) {

Loading…
Cancel
Save