TsgcWSPClient_DatasetEvents › OnUnSubscription

OnUnSubscription Event

Fires when the client has been unsubscribed from a channel.

Syntax

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

Default Value

Remarks

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.

Example

procedure TForm1.oProtocolUnSubscription(Connection: TsgcWSConnection; const Subscription: String);
begin
  Memo1.Lines.Add('unsubscribed: ' + Subscription);
end;

Back to Events