in Mission editor -> triggers -> repetitve action - Do script - change file location to where your 'script.lua' file. when the mission is running: in radio -> F10 -> choose 'run script'.
node.js code that listen to lua socket and trasmit result.
client that listen to node.js result.
goto: C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Scripts\MissionScripting.lua and comment this lines:
sanitizeModule('os') sanitizeModule('io') sanitizeModule('lfs') require = nil loadlib = nil