WebSocketServiceManagerBroadcastAsync Method (Stream, Int32, Action) |
Note: This API is now obsolete.
Namespace: Sfs2X.WebSocketSharp.Server
[ObsoleteAttribute("This method will be removed.")] public void BroadcastAsync( Stream stream, int length, Action completed )
An Action delegate or if not needed.
The delegate invokes the method called when the send is complete.
Exception | Condition |
---|---|
InvalidOperationException | The current state of the manager is not Start. |
ArgumentNullException | stream is . |
ArgumentException | stream cannot be read. -or- length is less than 1. -or- No data could be read from stream. |
The data is sent as the binary data.
This method does not wait for the send to be complete.