Skip to main content
Table of Contents

TTMSFNCWebSocketConnection.Send Method

Sends a text message as a single final text frame.

API unit family: TMSFNCWebSocketCommon Declaring type: TTMSFNCWebSocketConnection

Syntax

FMX.TMSFNCWebSocketCommon.hppPascalC++
procedure Send(const aMessage: string; const AMasked: Boolean = False);
void __fastcall Send(const System::UnicodeString aMessage, const bool AMasked = false);

Remarks

The handshake must be completed before calling.

Parameters

Name Description
aMessage Text to send.
AMasked When True, the payload is masked before sending. Defaults to False.