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
procedure SendMessageTo(AMessage: string; ASelector: TTMSFNCWebSocketSendToCallBack); virtual;
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. |