Click or drag to resize

WebSocketServiceManagerBroadcastAsync Method (Stream, Int32, Action)

Note: This API is now obsolete.

Sends the data from stream asynchronously to every client in the WebSocket services.

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
[ObsoleteAttribute("This method will be removed.")]
public void BroadcastAsync(
	Stream stream,
	int length,
	Action completed
)

Parameters

stream
Type: System.IOStream
A Stream instance from which to read the data to send.
length
Type: SystemInt32
An Int32 that specifies the number of bytes to send.
completed
Type: SystemAction

An Action delegate or if not needed.

The delegate invokes the method called when the send is complete.

Exceptions
ExceptionCondition
InvalidOperationException The current state of the manager is not Start.
ArgumentNullExceptionstream is .
ArgumentException

stream cannot be read.

-or-

length is less than 1.

-or-

No data could be read from stream.

Remarks

The data is sent as the binary data.

This method does not wait for the send to be complete.

See Also