add ipc param in connect methods
This commit is contained in:
parent
390cb7f78d
commit
45a0b8ee46
1 changed files with 2 additions and 2 deletions
|
@ -219,7 +219,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){
|
||||||
|
@ -289,7 +289,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