src/connection-handler.js
function registerApp(name, description, permissions) {
  const CONNECTION = new Connection();

  return new Promise((resolve, reject) => {
    CONNECTION.register(name, description, permissions)
      .then(() => resolve(new ConnectionHandler(CONNECTION)))
      .catch((error) => reject(error));
  });
}
function registerApp(name, description, permissions) {
  const CONNECTION = new Connection();

  return new Promise((resolve, reject) => {
    CONNECTION.register(name, description, permissions)
      .then(() => resolve(new ConnectionHandler(CONNECTION)))
      .catch((error) => reject(error));
  });
}
function registerApp ( name , description , permissions ) { const CONNECTION = new Connection ( ) ; return new Promise ( ( resolve , reject ) => { CONNECTION . register ( name , description , permissions ) . then ( ( ) => resolve ( new ConnectionHandler ( CONNECTION ) ) ) . catch ( ( error ) => reject ( error ) ) ; } ) ; }
Register an App.
@param {string} name - App's name.
@param {string} description -  App's description.
@param {string[]} permissions -  Permissions requested by this App.
@returns {Promise}
Register an App .