TsgcWSPClient_Presence › Methods › WriteData
Low-level raw write hook; disabled on the Presence client and kept only for API compatibility.
procedure WriteData(const aText: String);
| Name | Type | Description |
|---|---|---|
aText | const String | Raw text that would be written on the transport. Ignored by the Presence client. |
Presence messages must carry a structured envelope (member, channel, method), so the Presence client intentionally overrides WriteData with an empty implementation to prevent raw payloads from being sent. Use Subscribe, UnSubscribe, Publish or Invite instead of writing text directly. The method is kept in the public API for polymorphism with TsgcWSProtocol_Client_Base descendants.
// Do not call oPresence.WriteData directly; use Publish instead.
oPresence.Publish('hello everyone', 'chat');