diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index e1078836..698290c1 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -2968,27 +2968,66 @@ namespace WebSocketSharp } /// - /// Closes the WebSocket connection asynchronously with the specified - /// and , and releases - /// all associated resources. + /// Closes the connection asynchronously with the specified + /// and . /// /// /// - /// This method does nothing if the current state of the connection is - /// Closing or Closed. + /// This method does not wait for the close to be complete. /// /// - /// This method does not wait for the close to be complete. + /// And this method does nothing if the current state of + /// the connection is Closing or Closed. /// /// /// - /// One of the enum values that represents - /// the status code indicating the reason for the close. + /// + /// One of the enum values. + /// + /// + /// It represents the status code indicating the reason for the close. + /// /// /// - /// A that represents the reason for the close. - /// The size must be 123 bytes or less. + /// + /// A that represents the reason for the close. + /// + /// + /// The size must be 123 bytes or less in UTF-8. + /// /// + /// + /// + /// is + /// . + /// It cannot be used by clients. + /// + /// + /// -or- + /// + /// + /// is + /// . + /// It cannot be used by servers. + /// + /// + /// -or- + /// + /// + /// is + /// and + /// there is . + /// + /// + /// -or- + /// + /// + /// could not be UTF-8-encoded. + /// + /// + /// + /// The size of is greater than 123 bytes. + /// public void CloseAsync (CloseStatusCode code, string reason) { if (_client && code == CloseStatusCode.ServerError) {