TsgcWSPClient_sgcEvents › OnSubscription

OnSubscription Event

Fires when the client has been subscribed to a channel.

Syntax

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

Default Value

Remarks

Raised after the server confirms a Subscribe request. Subscription holds the channel name that was activated. From this point on, OnEvent delivers messages for that channel.

Example

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

Back to Events