diff --git a/README.md b/README.md index 8a9a0d93..aa92fc9b 100644 --- a/README.md +++ b/README.md @@ -333,7 +333,7 @@ wssv.AddWebSocketService ("/Chat"); wssv.AddWebSocketService ("/ChatWithNiceBoat", () => new Chat (" Nice boat.")); ``` -You can add any WebSocket service to your `WebSocketServer` with the specified path to the service, using the `WebSocketServer.AddWebSocketService` or `WebSocketServer.AddWebSocketService` method. +You can add any WebSocket service to your `WebSocketServer` with the specified path to the service, using the `WebSocketServer.AddWebSocketService` and `WebSocketServer.AddWebSocketService` methods. The type of `TWithNew` must inherit the `WebSocketService` class and must have a public parameterless constructor. @@ -371,7 +371,7 @@ I modified the `System.Net.HttpListener`, `System.Net.HttpListenerContext`, and So websocket-sharp provides the `WebSocketSharp.Server.HttpServer` class. -You can add any WebSocket service to your `HttpServer` with the specified path to the service, using the `HttpServer.AddWebSocketService` or `HttpServer.AddWebSocketService` method. +You can add any WebSocket service to your `HttpServer` with the specified path to the service, using the `HttpServer.AddWebSocketService` and `HttpServer.AddWebSocketService` methods. ```cs var httpsv = new HttpServer (4649);