code: function listenForDevices() {
    console.log('Listening for connected devices... \n');
  
    usbmux.createListener()
      .on('error', onErr)
      .on('attached', function(udid) {
        console.log('Device found: ', udid);
      })
      .on('detached', function(udid) {
        console.log('Device removed: ', udid);
      });
  }
docs: Listen for and report connected devices