I "Promise" this works
This latest update is some what of a complete re-write of the sender and now only returns a promise.
This is not a drop in replacement for 0.12.0.
Example
//Require the unifiedpush-node-sender library
const agSender = require('unifiedpush-node-sender');
const settings = {
url: 'http://localhost:8080/ag-push',
applicationId: '12345',
masterSecret: '123456'
};
Send a Message
//First get a handle on the client object, then use the client.sender.send method to send a message
agSender(settings).then((client) => {
client.sender.send(message, options).then((response) => {
console.log('success', response);
})
});