From 2dbc17ad81d93679e395985b7d2a0d727acaee2d Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 21 Jan 2014 17:41:00 +0900 Subject: [PATCH] Modified 'HTTP Server with the WebSocket' --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 204edb3f..4939a175 100644 --- a/README.md +++ b/README.md @@ -367,9 +367,11 @@ You can use the `WebSocketServer.Stop ()`, `WebSocketServer.Stop (ushort, string ### HTTP Server with the WebSocket ### -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 it receives a WebSocket connection request. +I modified the `System.Net.HttpListener`, `System.Net.HttpListenerContext`, and some other classes of [Mono] to create the HTTP server that can accept the WebSocket connection requests. -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. +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. ```cs var httpsv = new HttpServer (4649);