I am wondering if there is a way to pass socket.io socket into a forked process in node.js or restore socket.io socket in a forked process?
child = require("child_process").fork("worker.js")
io.sockets.on("connection", function(socket){
child.send("socket", socket);
})
source
share