Fix due to the removed HttpServer<T> class from HttpServer.cs

This commit is contained in:
sta
2012-09-19 14:40:12 +09:00
parent b136b39cbb
commit 3898696491
66 changed files with 104 additions and 50 deletions

View File

@@ -241,10 +241,11 @@ wssv.Stop();
I modified System.Net.HttpListener, System.Net.HttpListenerContext and some others of [Mono] to create the HTTP server that the connection can be upgraded to the WebSocket connection if the HTTP server received a WebSocket request.
You can specify the WebSocket service in the same way as the WebSocket server.
You can add to your `HttpServer` any WebSocket service and a matching path to that service by using `HttpServer.AddService<T>` method.
```cs
var httpsv = new HttpServer<Echo>(4649);
var httpsv = new HttpServer(4649);
httpsv.AddService<Echo>("/");
```
For more information, please refer to the [Example3].