Skip to main content
Table of Contents

TTMSFNCCustomWebsocketClient.Ping Method

Sends a ping control frame carrying the given text as its payload.

API unit family: TMSFNCWebSocketClient Declaring type: TTMSFNCCustomWebsocketClient

Overloads

Overload 1

Sends a ping control frame carrying the given text as its payload.

FMX.TMSFNCWebSocketClient.hppPascalC++
procedure Ping(AMessage: string); overload;
void __fastcall Ping(System::UnicodeString AMessage)/* overload */;

Parameters

Name Description
AMessage Text used as the ping payload.

Overload 2

Sends a ping control frame carrying the given bytes as its payload.

FMX.TMSFNCWebSocketClient.hppPascalC++
procedure Ping(ABytes: TBytes); overload;
void __fastcall Ping(System::Sysutils::TBytes ABytes)/* overload */;

Parameters

Name Description
ABytes Binary ping payload.