Skip to content

Instantly share code, notes, and snippets.

@jorgepedret jorgepedret/process.js Secret
Last active Dec 14, 2015

Embed
What would you like to do?
Sample of child process
var agents = require("switchboard-agents")
process.on("message", function(args){
agents.super(args)
})
var fork = require("child_process").fork;
var record = {
query: 'food'
}
var agentShim = fork('process.js');
agentShim.send(record);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.