TsgcWSPClient_FilesMethods › WriteData

WriteData Method

Sends a plain text message to the server over the Files subprotocol.

Syntax

procedure WriteData(const aText: String);

Parameters

NameTypeDescription
aTextconst StringText payload to send inside a sgc message envelope.

Remarks

Low-level send that wraps the text in a sgc message envelope (method=Message) and writes it on the underlying Client. Use SendFile for file uploads; WriteData is intended for auxiliary control messages that share the same transport.

Example

oProtocol.WriteData('ping');

Back to Methods