TsgcWSPServer_Files › Events › OnUnSubscription
Fired after a client has been unsubscribed from a channel.
property OnUnSubscription: TsgcWSSubscriptionEvent;
// TsgcWSSubscriptionEvent = procedure(Connection: TsgcWSConnection; const Subscription: String) of object
—
Fires after the subprotocol has removed the client from the channel list in response to an unsubscribe request. Use it to clean up any per-client / per-channel state.
procedure TForm1.oFilesUnSubscription(Connection: TsgcWSConnection; const Subscription: String);
begin
Memo1.Lines.Add(Format('%s left %s', [Connection.Guid, Subscription]));
end;