diff --git a/node_helper.js b/node_helper.js index 28dec7c..6699b48 100644 --- a/node_helper.js +++ b/node_helper.js @@ -4,5 +4,11 @@ module.exports = NodeHelper.create({ start: function() { this.countDown = 10000000 }, - socketNotificationReceived: function(notification, payload) {}, + socketNotificationReceived: function(notification, payload) { + switch(notification) { + case "DO_YOUR_JOB": + this.sendSocketNotification("I_DID", (this.countDown - payload)) + break + } + }, })