Click or drag to resize

WebSocketSessionManagerPingTo Method (String)

Sends a ping 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 bool PingTo(
	string id
)

Parameters

id
Type: SystemString
A String that represents the ID of the session.

Return Value

Type: Boolean
true if the send has done with no error and a pong has been received from the client within a time; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionid is .
ArgumentExceptionid is an empty string.
InvalidOperationException The session could not be found.
See Also