TsgcWSPClient_Dataset › Methods › UnSubscribe
Unsubscribes the client from a custom channel.
procedure UnSubscribe(const aChannel: String; const aGuid: String = '');
| Name | Type | Description |
|---|---|---|
aChannel | const String | Name of the channel to unsubscribe from. |
aGuid | const String | Optional Guid of the target server-side Dataset protocol instance. Leave empty to use the default. |
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.
oProtocol.UnSubscribe('news');