|
|
|
@ -2378,19 +2378,16 @@ namespace WebSocketSharp
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Closes the WebSocket connection with the specified <see cref="CloseStatusCode"/> 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 the size of <paramref name="reason"/> is
|
|
|
|
|
|
|
|
/// greater than 123 bytes.
|
|
|
|
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
/// <param name="code">
|
|
|
|
/// <param name="code">
|
|
|
|
/// One of the <see cref="CloseStatusCode"/> enum values, represents the status code indicating
|
|
|
|
/// One of the <see cref="CloseStatusCode"/> enum values that represents
|
|
|
|
/// the reason for the close.
|
|
|
|
/// 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 (CloseStatusCode code, string reason)
|
|
|
|
public void Close (CloseStatusCode code, string reason)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|