Skip to main content
Table of Contents

TTMSFNCWebSocketHandshakeRequest.GenerateKey Method

Generates a new random, base64-encoded key suitable for the Sec-WebSocket-Key header.

API unit family: TMSFNCWebSocketClient Declaring type: TTMSFNCWebSocketHandshakeRequest

Syntax

FMX.TMSFNCWebSocketClient.hppPascalC++
class function GenerateKey: string; static;
static System::UnicodeString __fastcall GenerateKey();

Returns

A freshly generated, base64-encoded 16-byte key.