Table of Contents

TTMSFNCWebSocketFrame.ToBuffer Method

Serializes the frame into the wire byte sequence, applying length encoding and masking according to the frame state.

API unit family: TMSFNCWebSocketCommon Declaring type: TTMSFNCWebSocketFrame

Syntax

function ToBuffer: TBytes;

Returns

The byte buffer ready to be written to the connection.