TsgcWSPClient_E2EEMethods › Subscribe

Subscribe Method

Subscribes the client to a channel on the in-memory Broker.

Syntax

procedure Subscribe(const aChannel: String; const aGuid: String = '');

Parameters

NameTypeDescription
aChannelconst StringName of the channel to subscribe to.
aGuidconst StringOptional subscription identifier. Leave empty to let the broker assign one.

Remarks

Registers this client with the in-memory Broker for the given channel. This is an sgc PubSub feature and is orthogonal to E2EE direct and group messaging; use it only when a Broker is assigned and you want to receive Publish/Broadcast traffic over the same connection. Messages routed through the broker are not end-to-end encrypted by this subprotocol.

Example

oE2EE.Subscribe('channel_news');

Back to Methods