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 triggered

    this.sendSocketNotification(“CONFIG”, this);

    Node helper:

    socketNotificationReceived: function(notification, moduleInstance) {
    if (notification === “CONFIG”) {
    console.log(“Working notification system. Notification:”, notification, "payload: ", payload);

  • @sharmmoh1983

    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?