Skip to main content
Table of Contents

TTMSFNCWebSocketServer.SendMessageTo Method

Sends a text message to the connections accepted by the selector.

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

Syntax

FMX.TMSFNCWebSocketServer.hppPascalC++
procedure SendMessageTo(AMessage: string; ASelector: TTMSFNCWebSocketSendToCallBack); virtual;
virtual void __fastcall SendMessageTo(System::UnicodeString AMessage, _di_TTMSFNCWebSocketSendToCallBack ASelector);

Parameters

Name Description
AMessage The text message to send.
ASelector A predicate evaluated for each connection; the message is sent only to connections for which it returns True.