TsgcWSPClient_PresenceMethods › WriteData

WriteData Method

Low-level raw write hook; disabled on the Presence client and kept only for API compatibility.

Syntax

procedure WriteData(const aText: String);

Parameters

NameTypeDescription
aTextconst StringRaw text that would be written on the transport. Ignored by the Presence client.

Remarks

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.

Example

// Do not call oPresence.WriteData directly; use Publish instead.
oPresence.Publish('hello everyone', 'chat');

Back to Methods