From 45a0b8ee460c90a36c788a22cc5e5fbd7e65c26a Mon Sep 17 00:00:00 2001 From: Theadd Date: Sun, 27 Jul 2014 20:40:52 +0200 Subject: [PATCH] add ipc param in connect methods --- node-ipc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-ipc.js b/node-ipc.js index 1b3f33f..2bd9173 100644 --- a/node-ipc.js +++ b/node-ipc.js @@ -219,7 +219,7 @@ function connect(id,path,callback){ ipc.of[id].connect(); - callback(); + callback(ipc); } function connectNet(id,host,port,callback){ @@ -289,7 +289,7 @@ function connectNet(id,host,port,callback){ ipc.of[id].connect(); - callback(); + callback(ipc); } module.exports=ipc; \ No newline at end of file