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?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login