C-DEngine 5.105

WebSocketSessionManager..::..SendToAsync Method (array<Byte>[]()[][], String, Action<(Of <(<'Boolean>)>)>)

Sends binary data asynchronously to the client on the session with the specified id.

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

Syntax


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

Parameters

data
Type: array<Byte>[]()[][]
An array of Byte that represents the binary data to send.
id
Type: String
A String that represents the ID of the session to find.
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.