TsgcWSPClient_Dataset › Events › OnSubscription
Fires when the client has been subscribed to a channel.
property OnSubscription: TsgcWSSubscriptionEvent;
// TsgcWSSubscriptionEvent = procedure(Connection: TsgcWSConnection; const Subscription: String) of object
—
Raised after the server confirms a Subscribe request. Subscription holds the channel name that was activated. When Subscribe_all is used, this event fires for each of the three internal Dataset channels (new, update, delete).
procedure TForm1.oProtocolSubscription(Connection: TsgcWSConnection; const Subscription: String);
begin
Memo1.Lines.Add('subscribed: ' + Subscription);
end;