TsgcWSPClient_FilesEvents › OnUnSubscription

OnUnSubscription Event

Fires when the server confirms that a channel subscription has been cancelled.

Syntax

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

Default Value

Remarks

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.

Example

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

Back to Events