TsgcWSPClient_Files › Methods › UnSubscribe
Cancels a previous Subscribe so the client no longer receives messages from the channel.
procedure UnSubscribe(const aChannel: String; const aGuid: String = '');
| Name | Type | Description |
|---|---|---|
aChannel | const String | Name of the channel the client leaves. |
aGuid | const String | Optional target subprotocol Guid on the server; leave empty to use the default instance. |
Sends an unsubscribe request so the server stops forwarding messages for the specified channel. OnUnSubscription fires once the server processes the request.
oProtocol.UnSubscribe('files.incoming');