TsgcWSPClient_KafkaEvents › OnKafkaConnect

OnKafkaConnect Event

Fires after the client connects to the broker.

Syntax

property OnKafkaConnect: TsgcKafkaConnectEvent;
// procedure(Sender: TObject) of object

Default Value

Remarks

This is a good place to Subscribe to topics or create topics, because at this point the client is connected to the broker and ready to issue requests.

Example

procedure TForm1.KafkaConnect(Sender: TObject);
begin
  oKafka.Subscribe(['my-topic']);
end;

Back to Events