From c464cf8f520ddb29acab2974dd00b35f1f8e72c4 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 29 Aug 2013 17:01:37 +0900 Subject: [PATCH] Removed a part about setting the server error event --- README.md | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 472f8c31..fc8c4bd4 100644 --- a/README.md +++ b/README.md @@ -204,7 +204,7 @@ Required namespace. using WebSocketSharp.Server; ``` -The `WebSocketServer`, `WebSocketServiceHost` and `WebSocketService` classes exist in the `WebSocketSharp.Server` namespace. +The `WebSocketService`, `WebSocketServiceHost` and `WebSocketServer` classes exist in the `WebSocketSharp.Server` namespace. #### Step 2 #### @@ -272,34 +272,13 @@ If you create a instance of the `WebSocketServer` class without the port number, #### Step 4 #### -Setting the event. - -##### WebSocketServiceHost<T>.OnError Event ##### - -A `WebSocketServiceHost.OnError` event occurs when the `WebSocketServiceHost` gets an error. - -```cs -wssv.OnError += (sender, e) => -{ - ... -}; -``` - -`e.Message` (`WebSocketSharp.ErrorEventArgs.Message`, its type is `string`) contains an error message, so you use it. - -##### WebSocketServer.OnError Event ##### - -Same as the `WebSocketServiceHost.OnError` event. - -#### Step 5 #### - Starting the server. ```cs wssv.Start (); ``` -#### Step 6 #### +#### Step 5 #### Stopping the server.