diff --git a/README.md b/README.md index e9b20f1f..29466db7 100644 --- a/README.md +++ b/README.md @@ -356,14 +356,12 @@ wssv.Start (); Stopping the WebSocket server. ```cs -wssv.Stop (); +wssv.Stop (code, reason); ``` The `WebSocketServer.Stop` method is overloaded. -You can use the `WebSocketServer.Stop ()` or `WebSocketServer.Stop (code, reason)` method to stop the server. - -The type of `code` is `ushort` or `WebSocketSharp.CloseStatusCode`, and the type of `reason` is `string`. +You can use the `WebSocketServer.Stop ()`, `WebSocketServer.Stop (ushort, string)`, or `WebSocketServer.Stop (WebSocketSharp.CloseStatusCode, string)` method to stop the server. ### HTTP Server with the WebSocket ###