TsgcWSPClient_sgcMethods › UnSubscribe

UnSubscribe Method

Unsubscribes the client from a custom channel.

Syntax

procedure UnSubscribe(const aChannel: String; const aGuid: String = '');

Parameters

NameTypeDescription
aChannelconst StringName of the channel to unsubscribe from.
aGuidconst StringOptional Guid of the target server-side sgc protocol instance. Leave empty to use the default.

Remarks

Removes the client from the given channel. When the server confirms the removal, the OnUnSubscription event fires and no further OnEvent messages are delivered for that channel.

Example

oProtocol.UnSubscribe('news');

Back to Methods