I am using MeteorJS & PhantomJS almost the same as the example/solution in this thread.
I am now trying to pass Strings from the PhantomJS script to MeteorJS where I intend to store it to a Mongo collection.
My question is: how do I pass variables such as Strings (or an Array of strings) from PhantomJS to MeteorJS ?
I am currently doing
console.log('uniqueMarker ', myString);
and then 'capturing' the console.log in MeteorJS via stdout data but this doesn't seem to be a reliable approach.