From b2580e3081c4fbd8ed084b35efa11c83fd8b5481 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 24 Jan 2014 04:10:27 +0900 Subject: [PATCH] Fix a few --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a7ed970..a946d35f 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` and `WebSocketServer.AddWebSocketService` methods. +You can add any WebSocket service to your `WebSocketServer` with the specified path to the service, using the `WebSocketServer.AddWebSocketService (string)` and `WebSocketServer.AddWebSocketService (string, Func)` 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` and `HttpServer.AddWebSocketService` methods. +You can add any WebSocket service to your `HttpServer` with the specified path to the service, using the `HttpServer.AddWebSocketService (string)` and `HttpServer.AddWebSocketService (string, Func)` methods. ```cs var httpsv = new HttpServer (4649);