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 public bool PingTo(
string id
)
Parameters
- id
- Type: SystemString
A String that represents the ID of the session.
Return Value
Type:
Booleantrue if the send has done with no error and a pong has been
received from the client within a time; otherwise,
false.
Exceptions Exception | Condition |
---|
ArgumentNullException | id is .
|
ArgumentException | id is an empty string.
|
InvalidOperationException |
The session could not be found.
|
See Also