Click or drag to resize

WebSocketSessionManagerSendTo Method (String, 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(
	string data,
	string id
)

Parameters

data
Type: SystemString
A String that represents the text data to send.
id
Type: SystemString
A String that represents the ID of the session.
Exceptions
ExceptionCondition
ArgumentNullException

id is .

-or-

data is .

ArgumentException

id is an empty string.

-or-

data could not be UTF-8-encoded.

InvalidOperationException

The session could not be found.

-or-

The current state of the WebSocket connection is not Open.

See Also