IPC with childprocess,fork -ed with callbacks.

47 views
Skip to first unread message

Denys Khanzhiyev

unread,
Nov 7, 2012, 7:01:26 AM11/7/12
to nodejs
I need a general solution to make calls to child as following

child.send(message,function(error, data){
 
});

and in the child

parent.on('message',function(message,callback){
  ...
   callback(err,data);
});

I know I can do it myself by defining my own message wraper with UID and putting them in pushing them in array on send and poping on receive.
But maybe somebody have done that already ? Can't find any module for that.

Denys Khanzhiyev

unread,
Nov 7, 2012, 5:00:04 PM11/7/12
to nodejs
I have made one https://github.com/xdenser/node-childWithCallbacks


2012/11/7 Denys Khanzhiyev <xde...@gmail.com>
Reply all
Reply to author
Forward
0 new messages