C-DEngine 5.105

WebSocketServiceManager..::..BroadcastAsync Method (Stream, Int32, Action)

Sends binary data from the specified Stream asynchronously to every client in the WebSocket services.

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

Syntax


public void BroadcastAsync(
	Stream stream,
	int length,
	Action completed
)
Public Sub BroadcastAsync ( _
	stream As Stream, _
	length As Integer, _
	completed As Action _
)
public:
void BroadcastAsync(
	Stream^ stream, 
	int^ length, 
	Action^ completed
)

Parameters

stream
Type: Stream
A Stream from which contains the binary data to send.
length
Type: Int32
An Int32 that represents the number of bytes to send.
completed
Type: Action
An [Action] delegate that references the method(s) called when the send is complete.

Remarks


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