TsgcWSPClient_PresenceMethods › Subscribe

Subscribe Method

Joins the local member to the given channel.

Syntax

procedure Subscribe(const aChannel: String);

Parameters

NameTypeDescription
aChannelconst StringName of the channel to join.

Remarks

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.

Example

oPresence.Subscribe('chat');

Back to Methods