Skip to main content
Table of Contents

TTMSFNCCustomWebsocketClient.Send Method

Sends raw binary data as one or more frames, splitting it when message splitting is enabled.

API unit family: TMSFNCWebSocketClient Declaring type: TTMSFNCCustomWebsocketClient

Overloads

Overload 1

Sends raw binary data as one or more frames, splitting it when message splitting is enabled.

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

Parameters

Name Description
ABytes The binary payload to send.

Overload 2

Sends a text message, splitting it across frames when message splitting is enabled.

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

Parameters

Name Description
AMessage The text message to send.