node package manager


Push It - node redis client

Node client for the Push It Worker.


npm install push-it-client


var redis = require("redis");
var redisClient = redis.createClient();
var pushiItClient = require("push-it-client");;

var client = new pushiItClient(redisClient);
var application = 'testPushMay-sandbox';
var pathPhrase = '';

// Send a push
client.sendIOS(application, pathPhrase, ["YOUR_DEVICE_TOKEN", "YOUR_OTHER_DEVICE_TOKEN"], "Hello world", 1, "default", {}, function(err, result){


// Get a feedback from apple
client.getIosDevicesToRemove(application, function(err, result){

    // Delete the feedback after reading
    client.delApnsFeedback(application, function() {});