Click or drag to resize

WebSocketPing Method (String)

Sends a ping with message using the WebSocket connection.

Namespace:  Sfs2X.WebSocketSharp
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public bool Ping(
	string message
)

Parameters

message
Type: SystemString

A String that represents the message to send.

The size must be 125 bytes or less in UTF-8.

Return Value

Type: Boolean
true if the send has done with no error and a pong has been received within a time; otherwise, false.
Exceptions
ExceptionCondition
ArgumentExceptionmessage could not be UTF-8-encoded.
ArgumentOutOfRangeException The size of message is greater than 125 bytes.
See Also