qbit / node-pushover

Pushover notifications for node.js (JavaScript,NodeJS)
ISC License
163 stars 24 forks source link

Emergency #10

Closed RWOverdijk closed 10 years ago

RWOverdijk commented 10 years ago

Emergency doesn't work because we can't specify an expire value. How can I work around this?

qbit commented 10 years ago

You can specify expire and retry. Simply add them to the object being sent to Pushover.send().

var msg = {
    message: "test",
    sound: "magic",
    title: "Emergency Test",
    priority: 2,
    retry: 30,
    expire: 500
};

p.send(msg, function(err, res) {
    console.log(err, res);
});