var matrixAuth = require('node-matrix-auth');

var auth = matrixAuth({

  auth: 'user:pass',

  admin: 'http://mysource.matrix/_admin',

  wsdl: 'http://mysource.matrix/_web_services/soap?wsdl'

});

auth.on('error', function(err) {

  console.error(err);

});

auth.on('success', function(data) {

  console.log(data);

});