WebSocketSendAsync Method (Byte, ActionBoolean) |
Namespace: Sfs2X.WebSocketSharp
public void SendAsync( byte[] data, Action<bool> completed )
An Action<bool> delegate or if not needed.
The delegate invokes the method called when the send is complete.
true is passed to the method if the send has done with no error; otherwise, false.
Exception | Condition |
---|---|
InvalidOperationException | The current state of the connection is not Open. |
ArgumentNullException | data is . |