Node.js Inter process communication?
问题 Does Node.js provide any standard way of doing IPC as it happens in many other languages? I am new to Node.js and all information I found was about using child_process.fork() or sockets. 回答1: Have you tried this node package? Following their doc, possible example could be for server: var ipc=require('node-ipc'); ipc.config.id = 'world'; ipc.config.retry= 1500; ipc.serve( function(){ ipc.server.on( 'message', function(data,socket){ ipc.log('got a message : '.debug, data); ipc.server.emit(