From 294e8cc3dc7368fbb93f83a4630b4358d59216fd Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 17 Jan 2014 21:16:30 +0900 Subject: [PATCH] Fix a few --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 347409a6..88d2d0ce 100644 --- a/README.md +++ b/README.md @@ -186,7 +186,7 @@ ws.Send (data); The `WebSocket.Send (data)` method is overloaded. -The types of `data` are `string`, `byte []` and `System.IO.FileInfo`. +The type of `data` is `string`, `byte []` or `System.IO.FileInfo`. If you want to send a data to the WebSocket server asynchronously, you should use the `WebSocket.SendAsync (data, completed)` method. @@ -197,16 +197,16 @@ If you want to do something when the send is complete, you should set any action Closing the WebSocket connection. ```cs -ws.Close (code, reason); +ws.Close (); ``` If you want to close the WebSocket connection explicitly, you should use the `WebSocket.Close` method. The `WebSocket.Close` method is overloaded. -The `WebSocket.Close (code, reason)` method, the types of `code` are `WebSocketSharp.CloseStatusCode` and `ushort`, and the type of `reason` is `string`. +The `WebSocket.Close ()`, `WebSocket.Close (code)` and `WebSocket.Close (code, reason)` methods exist. -In addition, the `WebSocket.Close ()` and `WebSocket.Close (code)` methods exist, too. +The type of `code` is `WebSocketSharp.CloseStatusCode` or `ushort`, and the type of `reason` is `string`. If you want to close the WebSocket connection asynchronously, you should use the `WebSocket.CloseAsync` method.