I was wondering what is the proper way to use node-main. I think it solves the problem I have.
I want to launch an application that runs some node services in the background. I want these services to live independent lifetimes to the various windows. But I want my windows to communicate with the background node process.
As far as I can tell, node-main starts a node process with the correct lifetime as what I want (page refreshes don't affect it), but the first main window is started before the node-main script is finished putting things in global. Do I have to watch for some flag in a setInterval loop in my webkit code or is there a better way?