TsgcWSPClient_PresenceMethods › UnSubscribe

UnSubscribe Method

Removes the local member from the given channel.

Syntax

procedure UnSubscribe(const aChannel: String);

Parameters

NameTypeDescription
aChannelconst StringName of the channel to leave.

Remarks

Sends a remove-channel-member request. After the server processes it the client no longer receives publications on the channel, and the remaining subscribers are notified through their OnRemoveChannelMember event.

Example

oPresence.UnSubscribe('chat');

Back to Methods