From 8f2a303f55c2eb4b00ec707c29fda0741e1f5dfa Mon Sep 17 00:00:00 2001 From: rushilwiz Date: Tue, 26 May 2020 18:23:06 -0400 Subject: [PATCH] more testing --- node_helper.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 + } + }, })