TsgcWSPClient_Files › Events › OnSubscription
Fires when the server confirms a channel subscription requested with Subscribe.
property OnSubscription: TsgcWSSubscriptionEvent;
// TsgcWSSubscriptionEvent = procedure(Connection: TsgcWSConnection; const Subscription: String) of object
—
Subscription carries the channel name this client has successfully joined. Use the event to track registered channels or trigger follow-up actions once the server acknowledges the subscription.
procedure TForm1.oProtocolSubscription(Connection: TsgcWSConnection;
const Subscription: String);
begin
Memo1.Lines.Add('subscribed: ' + Subscription);
end;