Skip to main content
Table of Contents

TTMSFNCWebSocketServer.OnAllow Event

Occurs after the handshake request has been received, allowing the handler to reject the connection by clearing the allow parameter.

API unit family: TMSFNCWebSocketServer Declaring type: TTMSFNCWebSocketServer Inherited from: TTMSFNCCustomWebSocketServer

Syntax

FMX.TMSFNCWebSocketServer.hppPascalC++
OnAllow: TTMSFNCWebSocketAllowConnectionEvent;
__property TTMSFNCWebSocketAllowConnectionEvent OnAllow = {read=FOnAllow, write=FOnAllow};

Parameters

Name Description
Sender The server that raised the event.
AConnection The connection being evaluated.
AAllow Set to False to reject the connection.