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.