TsgcWSPServer_FilesEvents › OnUnSubscription

OnUnSubscription Event

Fired after a client has been unsubscribed from a channel.

Syntax

property OnUnSubscription: TsgcWSSubscriptionEvent;
// TsgcWSSubscriptionEvent = procedure(Connection: TsgcWSConnection; const Subscription: String) of object

Default Value

Remarks

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.

Example

procedure TForm1.oFilesUnSubscription(Connection: TsgcWSConnection; const Subscription: String);
begin
  Memo1.Lines.Add(Format('%s left %s', [Connection.Guid, Subscription]));
end;

Back to Events