WebSocketSend Method (Stream, Int32) |
Namespace: Sfs2X.WebSocketSharp
public void Send( Stream stream, int length )
A Stream instance from which to read the data to send.
The data is sent as the binary data.
Exception | Condition |
---|---|
InvalidOperationException | The current state of the connection is not Open. |
ArgumentNullException | stream is . |
ArgumentException | stream cannot be read. -or- length is less than 1. -or- No data could be read from stream. |