You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

11 lines
227 B

var kafka = require('../lib');
var p = new kafka.Producer({ 'bootstrap.servers': 'localhost:9092' }, {});
p.connect({ timeout: 1000 }, function(err) {
if (!err) {
p.disconnect();
} else {
process.exit(0);
}
});