From 54726f38c77fe37e500d3ef2c16dd76dfd2fe117 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 21 Jan 2014 03:17:51 +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 8477093d..e9b20f1f 100644 --- a/README.md +++ b/README.md @@ -331,7 +331,7 @@ wssv.AddWebSocketService ("/Chat"); wssv.AddWebSocketService ("/ChatWithNiceBoat", () => new Chat (" Nice boat.")); ``` -You can add any WebSocket service with the specified path to the service to your `WebSocketServer` using the `WebSocketServer.AddWebSocketService` or `WebSocketServer.AddWebSocketService` method. +You can add any WebSocket service to your `WebSocketServer` with the specified path to the service, using the `WebSocketServer.AddWebSocketService` or `WebSocketServer.AddWebSocketService` method. The type of `TWithNew` must inherit the `WebSocketService` class and must have a public parameterless constructor. @@ -361,7 +361,7 @@ wssv.Stop (); The `WebSocketServer.Stop` method is overloaded. -The `WebSocketServer.Stop ()` and `WebSocketServer.Stop (code, reason)` methods exist. +You can use the `WebSocketServer.Stop ()` or `WebSocketServer.Stop (code, reason)` method to stop the server. The type of `code` is `ushort` or `WebSocketSharp.CloseStatusCode`, and the type of `reason` is `string`.