Modified Step 5 of 'WebSocket Client'

This commit is contained in:
sta 2014-01-21 15:20:06 +09:00
parent e3e8bdf3e5
commit 630da48fb3

View File

@ -195,7 +195,11 @@ The `WebSocket.Send` method is overloaded.
You can use the `WebSocket.Send (string)`, `WebSocket.Send (byte [])`, or `WebSocket.Send (System.IO.FileInfo)` method to send a data.
If you want to send a data asynchronously, you should use the `WebSocket.SendAsync (data, completed)` method.
If you want to send a data asynchronously, you should use the `WebSocket.SendAsync` method.
```cs
ws.SendAsync (data, completed);
```
And if you want to do something when the send is complete, you should set any action to `completed` (its type is `Action<bool>`).