C-DEngine 5.105

WebSocket..::..SendAsync Method (array<Byte>[]()[][], Action<(Of <(<'Boolean>)>)>)

Sends binary data asynchronously using the WebSocket connection.

Namespace:  WebSocketSharp
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public void SendAsync(
	byte[] data,
	Action<bool> completed
)
Public Sub SendAsync ( _
	data As Byte(), _
	completed As Action(Of Boolean) _
)
public:
void SendAsync(
	array<unsigned char^>^ data, 
	Action<bool^>^ completed
)

Parameters

data
Type: array<Byte>[]()[][]
An array of Byte that represents the binary data to send.
completed
Type: Action<(Of <(<'Boolean>)>)>
An Action<bool> delegate that references the method(s) called when the send is complete. A Boolean passed to this delegate is true if the send is complete successfully.

Remarks


This method doesn't wait for the send to be complete.