diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 7f43064c..42d0aac6 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -2434,19 +2434,39 @@ namespace WebSocketSharp } /// - /// Closes the WebSocket connection with the specified , - /// and releases all associated resources. + /// Closes the connection with the specified . /// /// /// This method does nothing if the current state of the connection is /// Closing or Closed. /// /// - /// A that represents the status code indicating - /// the reason for the close. The status codes are defined in - /// - /// Section 7.4 of RFC 6455. + /// + /// A that represents the status code + /// indicating the reason for the close. + /// + /// + /// The status codes are defined in + /// + /// Section 7.4 of RFC 6455. + /// /// + /// + /// is less than 1000 or greater than 4999. + /// + /// + /// + /// is 1011 (server error) and + /// it cannot be used by clients. + /// + /// + /// -or- + /// + /// + /// is 1010 (mandatory extension) and + /// it cannot be used by servers. + /// + /// public void Close (ushort code) { if (!code.IsCloseStatusCode ()) {