TsgcWSPClient_E2EE › Methods › Subscribe
Subscribes the client to a channel on the in-memory Broker.
procedure Subscribe(const aChannel: String; const aGuid: String = '');
| Name | Type | Description |
|---|---|---|
aChannel | const String | Name of the channel to subscribe to. |
aGuid | const String | Optional subscription identifier. Leave empty to let the broker assign one. |
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.
oE2EE.Subscribe('channel_news');