Merge pull request #17 from Theadd/master
return ipc as argument in connect and connectNet callbacks
This commit is contained in:
commit
dd4c26abae
1 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ function connect(id,path,callback){
|
||||||
|
|
||||||
ipc.of[id].connect();
|
ipc.of[id].connect();
|
||||||
|
|
||||||
callback();
|
callback(ipc);
|
||||||
}
|
}
|
||||||
|
|
||||||
function connectNet(id,host,port,callback){
|
function connectNet(id,host,port,callback){
|
||||||
|
@ -291,7 +291,7 @@ function connectNet(id,host,port,callback){
|
||||||
|
|
||||||
ipc.of[id].connect();
|
ipc.of[id].connect();
|
||||||
|
|
||||||
callback();
|
callback(ipc);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports=ipc;
|
module.exports=ipc;
|
Loading…
Reference in a new issue