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

class function GenerateKey: string; static;

Returns

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