TsgcWSPClient_Files › Events › OnUnSubscription
Fires when the server confirms that a channel subscription has been cancelled.
property OnUnSubscription: TsgcWSSubscriptionEvent;
// TsgcWSSubscriptionEvent = procedure(Connection: TsgcWSConnection; const Subscription: String) of object
—
Subscription carries the channel name the client has left. From this point on no further notifications on the channel will be delivered until Subscribe is invoked again.
procedure TForm1.oProtocolUnSubscription(Connection: TsgcWSConnection;
const Subscription: String);
begin
Memo1.Lines.Add('unsubscribed: ' + Subscription);
end;