TsgcWSPClient_sgc › 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. From this point on, OnEvent delivers messages for that channel.
procedure TForm1.oProtocolSubscription(Connection: TsgcWSConnection; const Subscription: String);
begin
Memo1.Lines.Add('subscribed: ' + Subscription);
end;