TsgcWSPClient_Dataset › Events › OnUnSubscription
Fires when the client has been unsubscribed from a channel.
property OnUnSubscription: TsgcWSSubscriptionEvent;
// TsgcWSSubscriptionEvent = procedure(Connection: TsgcWSConnection; const Subscription: String) of object
—
Raised after the server confirms an UnSubscribe, UnSubscribeAll or UnSubscribe_all request. Subscription holds the channel name that was removed; when UnSubscribeAll or UnSubscribe_all is used the event fires once per channel.
procedure TForm1.oProtocolUnSubscription(Connection: TsgcWSConnection; const Subscription: String);
begin
Memo1.Lines.Add('unsubscribed: ' + Subscription);
end;