|
|
|
@ -2306,19 +2306,16 @@ namespace WebSocketSharp
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Closes the WebSocket connection with the specified <see cref="ushort"/> and
|
|
|
|
/// Closes the WebSocket connection with the specified <paramref name="code"/> and
|
|
|
|
/// <see cref="string"/>, and releases all associated resources.
|
|
|
|
/// <paramref name="reason"/>, and releases all associated resources.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
|
|
|
|
/// This method emits a <see cref="OnError"/> event if <paramref name="code"/> isn't in
|
|
|
|
|
|
|
|
/// the allowable range of the close status code or the size of <paramref name="reason"/> is
|
|
|
|
|
|
|
|
/// greater than 123 bytes.
|
|
|
|
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
/// <param name="code">
|
|
|
|
/// <param name="code">
|
|
|
|
/// A <see cref="ushort"/> that represents the status code indicating the reason for the close.
|
|
|
|
/// A <see cref="ushort"/> that represents the status code indicating
|
|
|
|
|
|
|
|
/// the reason for the close.
|
|
|
|
/// </param>
|
|
|
|
/// </param>
|
|
|
|
/// <param name="reason">
|
|
|
|
/// <param name="reason">
|
|
|
|
/// A <see cref="string"/> that represents the reason for the close.
|
|
|
|
/// A <see cref="string"/> that represents the reason for the close.
|
|
|
|
|
|
|
|
/// The size must be 123 bytes or less.
|
|
|
|
/// </param>
|
|
|
|
/// </param>
|
|
|
|
public void Close (ushort code, string reason)
|
|
|
|
public void Close (ushort code, string reason)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|