Modified Step 5 of 'WebSocket Client'
This commit is contained in:
@@ -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.
|
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>`).
|
And if you want to do something when the send is complete, you should set any action to `completed` (its type is `Action<bool>`).
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user