Click or drag to resize

WebSocketSessionManagerSendTo Method (Byte, String)

Sends data 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(
	byte[] data,
	string id
)

Parameters

data
Type: SystemByte
An array of Byte that represents the binary data to send.
id
Type: SystemString
A String that represents the ID of the session.
Exceptions
ExceptionCondition
ArgumentNullException

id is .

-or-

data is .

ArgumentExceptionid is an empty string.
InvalidOperationException

The session could not be found.

-or-

The current state of the WebSocket connection is not Open.

See Also