TsgcWSPClient_Dataset › Methods › WriteData
Sends a plain text message to the server using the sgc message envelope.
procedure WriteData(const aText: String);
| Name | Type | Description |
|---|---|---|
aText | const String | Text payload to send to the server. |
Wraps the payload in the sgc message envelope (method=message) and sends it to the server, which re-raises it through OnMessage on the server side. Unlike Publish and Broadcast, WriteData targets the server itself and does not involve subscribers.
oProtocol.WriteData('ping');