lib/admin.js
function createAdminClient(conf) {
  var client = new AdminClient(conf);

  // Wrap the error so we throw if it failed with some context
  LibrdKafkaError.wrap(client.connect(), true);

  // Return the client if we succeeded
  return client;
}
function createAdminClient(conf) {
  var client = new AdminClient(conf);

  // Wrap the error so we throw if it failed with some context
  LibrdKafkaError.wrap(client.connect(), true);

  // Return the client if we succeeded
  return client;
}
function createAdminClient ( conf ) { var client = new AdminClient ( conf ) ; // Wrap the error so we throw if it failed with some context LibrdKafkaError . wrap ( client . connect ( ) , true ) ; // Return the client if we succeeded return client ; }
Create a new AdminClient for making topics, partitions, and more.

This is a factory method because it immediately starts an
active handle with the brokers.
Create a new AdminClient for making topics partitions and more .