>>Yeah that's one way - as long as you can do what you need to in async JavaScript. Most likely you'll just push messages to VFP and have VFP poll for these messages using semaphores on. Not so easy to do event based notifications though since you can't host node.
All we do is listen for the port client and save the message to disk. A separate process picks it up and processes it. Done this way because the sending systems have big iron hardware and can pump 100K messages as fast as the wire can carry it.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us."
-- Shakespeare: Coriolanus, Act 1, scene 1