Hi,
I convert a CSV file to a JSON array at the node_helper.js file. This array (subscriptions) is needed at several functions at the mmm-sample.js file.
The array is available at other functions within the node_helper.js I use this.subscriptions = (jsonObj); within the CSVtoJSON function and declare var subscriptions = []; at the top of nodehelper.js and also at the mmm-sample.js.
How can I achieve this? Do I need the sendSocketNotification functionality to send data back and forth between the files?
Any help is much appreciated.
Regards,
Bert