code: function(arg) {
    var args = Array.isArray(arg) ? arg : Array.apply(null, arguments);
    lastMsgDate = new Date();
    fs.write(tempFile, JSON.stringify(args) + '\n', 'a');
  }
docs: Send messages to the parent by appending to temp file