[Modify] Edit it
This commit is contained in:
		@@ -865,18 +865,75 @@ namespace WebSocketSharp.Server
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// Closes the session with the specified <paramref name="id"/>, <paramref name="code"/>,
 | 
			
		||||
    /// and <paramref name="reason"/>.
 | 
			
		||||
    /// Closes the specified session with <paramref name="code"/> and
 | 
			
		||||
    /// <paramref name="reason"/>.
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    /// <param name="id">
 | 
			
		||||
    /// A <see cref="string"/> that represents the ID of the session to close.
 | 
			
		||||
    /// </param>
 | 
			
		||||
    /// <param name="code">
 | 
			
		||||
    /// A <see cref="ushort"/> that represents the status code indicating the reason for the close.
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   A <see cref="ushort"/> that represents the status code indicating
 | 
			
		||||
    ///   the reason for the close.
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   The status codes are defined in
 | 
			
		||||
    ///   <see href="http://tools.ietf.org/html/rfc6455#section-7.4">
 | 
			
		||||
    ///   Section 7.4</see> of RFC 6455.
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    /// </param>
 | 
			
		||||
    /// <param name="reason">
 | 
			
		||||
    /// A <see cref="string"/> that represents the reason for the close.
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   A <see cref="string"/> that represents the reason for the close.
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   The size must be 123 bytes or less in UTF-8.
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    /// </param>
 | 
			
		||||
    /// <exception cref="ArgumentNullException">
 | 
			
		||||
    /// <paramref name="id"/> is <see langword="null"/>.
 | 
			
		||||
    /// </exception>
 | 
			
		||||
    /// <exception cref="ArgumentException">
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   <paramref name="id"/> is an empty string.
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   -or-
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   The session could not be found.
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   -or-
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   <paramref name="code"/> is 1010 (mandatory extension).
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   -or-
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   <paramref name="code"/> is 1005 (no status) and there is
 | 
			
		||||
    ///   <paramref name="reason"/>.
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   -or-
 | 
			
		||||
    ///   </para>
 | 
			
		||||
    ///   <para>
 | 
			
		||||
    ///   <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 CloseSession (string id, ushort code, string reason)
 | 
			
		||||
    {
 | 
			
		||||
      IWebSocketSession session;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user