TsgcWSPClient_Kafka › Events › OnKafkaDisconnect
Fires when the connection to the broker is closed.
property OnKafkaDisconnect: TsgcKafkaDisconnectEvent;
// procedure(Sender: TObject; const aCode: Integer) of object
—
Fires when the connection to the broker is closed. The aCode argument carries the close code reported for the disconnection.
procedure TForm1.KafkaDisconnect(Sender: TObject; const aCode: Integer);
begin
Log('Disconnected, code: ' + IntToStr(aCode));
end;