A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Pass module object to node helper
-
Hi
I am trying to pass module instance to node helper but in that scenario, no communication happens and node helper received notifications never gets triggeredModule:
this.sendSocketNotification(“CONFIG”, this);Node helper:
socketNotificationReceived: function(notification, moduleInstance) {
if (notification === “CONFIG”) {
this.activateSonus(moduleInstance)
console.log(“Working notification system. Notification:”, notification, "payload: ", payload);
}
}, -
this.sendSocketNotification(“CONFIG”, this.config);
-
I don’t want to pass config but the complete module object (this). Which is not working?
How to do that?