TsgcWSPClient_E2EE › Methods › UnSubscribe
Unsubscribes the client from a channel on the in-memory Broker.
procedure UnSubscribe(const aChannel: String; const aGuid: String = '');
| Name | Type | Description |
|---|---|---|
aChannel | const String | Name of the channel to unsubscribe from. |
aGuid | const String | Optional subscription identifier previously used with Subscribe. Leave empty to cancel the default subscription. |
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).
oE2EE.UnSubscribe('channel_news');