[Modify] Edit it

Those methods were obsolete.
This commit is contained in:
sta 2022-01-14 19:47:24 +09:00
parent eb478185a7
commit 5f346e1651

View File

@ -404,13 +404,9 @@ wssv.Start ();
Stopping the WebSocket server.
```csharp
wssv.Stop (code, reason);
wssv.Stop ();
```
The `WebSocketServer.Stop` method is overloaded.
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 ###
I have modified the `System.Net.HttpListener`, `System.Net.HttpListenerContext`, and some other classes from **[Mono]** to create an HTTP server that allows to accept the WebSocket handshake requests.