TsgcWSPClient_E2EEMethods › UnSubscribe

UnSubscribe Method

Unsubscribes the client from a channel on the in-memory Broker.

Syntax

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

Parameters

NameTypeDescription
aChannelconst StringName of the channel to unsubscribe from.
aGuidconst StringOptional subscription identifier previously used with Subscribe. Leave empty to cancel the default subscription.

Remarks

Cancels a previous Subscribe call on the in-memory Broker. Applies only to the sgc PubSub layer exposed through the Broker property; it has no effect on E2EE group membership (use LeaveGroup to stop receiving encrypted group messages).

Example

oE2EE.UnSubscribe('channel_news');

Back to Methods