Click or drag to resize

WebSocketSessionManagerSendTo Method (Stream, Int32, String)

Sends the data from stream to the client using the specified session.

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public void SendTo(
	Stream stream,
	int length,
	string id
)

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.
id
Type: SystemString
A String that represents the ID of the session.
Exceptions
ExceptionCondition
ArgumentNullException

id is .

-or-

stream is .

ArgumentException

id is an empty string.

-or-

stream cannot be read.

-or-

length is less than 1.

-or-

No data could be read from stream.

InvalidOperationException

The session could not be found.

-or-

The current state of the WebSocket connection is not Open.

Remarks
The data is sent as the binary data.
See Also