From 5d8de64d1dd41e585b2bd487d9b12020d4e468ed Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 2 Oct 2013 15:45:24 +0900 Subject: [PATCH] Modified a little --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b25e7f66..b365609a 100644 --- a/README.md +++ b/README.md @@ -266,7 +266,8 @@ Creating an instance of the `WebSocketServer` class. ```cs var wssv = new WebSocketServer (4649); wssv.AddWebSocketService ("/Echo"); -wssv.AddWebSocketService ("/Chat", () => new Chat (" Nice boat.")); +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. @@ -306,7 +307,8 @@ You can add any WebSocket service with a specified path to the service to your ` ```cs var httpsv = new HttpServer (4649); httpsv.AddWebSocketService ("/Echo"); -httpsv.AddWebSocketService ("/Chat", () => new Chat (" Nice boat.")); +httpsv.AddWebSocketService ("/Chat"); +httpsv.AddWebSocketService ("/ChatWithNiceBoat", () => new Chat (" Nice boat.")); ``` For more information, could you see **[Example3]**?