From 2e2a4bd091815e694b08a695afb5c7e98f7af532 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 17 Nov 2013 16:48:21 +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 e72ca47b..c8995101 100644 --- a/README.md +++ b/README.md @@ -279,7 +279,7 @@ wssv.AddWebSocketService ("/Chat"); wssv.AddWebSocketService ("/ChatWithNiceBoat", () => new Chat (" Nice boat.")); ``` -You can add any WebSocket service with a specified path to the service to your `WebSocketServer` by using the `WebSocketServer.AddWebSocketService` or `WebSocketServer.AddWebSocketService` method. +You can add any WebSocket service with the specified path to the service to your `WebSocketServer` by using the `WebSocketServer.AddWebSocketService` or `WebSocketServer.AddWebSocketService` method. The type of `TWithNew` must inherit the `WebSocketService` class and must have a public parameterless constructor. @@ -311,7 +311,7 @@ wssv.Stop (); I modified the `System.Net.HttpListener`, `System.Net.HttpListenerContext` and some other classes of [Mono] to create the HTTP server that can upgrade the connection to the WebSocket connection when receives a WebSocket connection request. -You can add any WebSocket service with a specified path to the service to your `HttpServer` by using the `HttpServer.AddWebSocketService` or `HttpServer.AddWebSocketService` method. +You can add any WebSocket service with the specified path to the service to your `HttpServer` by using the `HttpServer.AddWebSocketService` or `HttpServer.AddWebSocketService` method. ```cs var httpsv = new HttpServer (4649);