Skip to main content
Table of Contents

TTMSFNCWebSocketConnection.SendBytesInMultipleFrames Method

Sends binary data split across multiple fragmented frames.

API unit family: TMSFNCWebSocketCommon Declaring type: TTMSFNCWebSocketConnection

Syntax

FMX.TMSFNCWebSocketCommon.hppPascalC++
procedure SendBytesInMultipleFrames(var ABytes: TBytes; AFrameLength: UInt64; const AMasked: Boolean = False);
void __fastcall SendBytesInMultipleFrames(System::Sysutils::TBytes &ABytes, unsigned __int64 AFrameLength, const bool AMasked = false);

Remarks

The handshake must be completed before calling.

Parameters

Name Description
ABytes Binary payload to send; the buffer is consumed as frames are produced.
AFrameLength Maximum length of each frame, including header overhead.
AMasked When True, each frame payload is masked before sending. Defaults to False.