TsgcWSPClient_Presence › Methods › Subscribe
Joins the local member to the given channel.
procedure Subscribe(const aChannel: String);
| Name | Type | Description |
|---|---|---|
aChannel | const String | Name of the channel to join. |
Sends a new-channel-member request for the channel. When the server accepts it, every member already subscribed to the channel receives an OnNewChannelMember event with this client's member info, and every Publish on that channel is then delivered through OnPublishMsg.
oPresence.Subscribe('chat');