RIAEvangelist/node-ipc — pull request #17 by Theadd (2014-07-29 17:13:14+00:00)
Title: return ipc as argument in connect and connectNet callbacks

If not considered some kind of bad practice or whatever, could you please return current ipc object as callback argument from connect and connectNet methods like in this pull request?
Troubling scenario in connectNet callback:
```
Service.prototype._clientCallback = function(ipc) {
//console.log(this)
ipc.of[ipc.config.id].socket.on(
'connect',
function(){
console.log("Connected to " + ipc.config.id)
}
)
ipc.of[ipc.config.id].socket.on(
'disconnect',
function(){
console.log("Not connected to " + ipc.config.id)
}
)
}
```
Without **ipc** as parameter, I found no way to get the correct ipc instance (I'm using multiple ipc instances). **this** is useless since it points to the whole node/sails object, including process information, package.json values, etc.

Also, if I specify current ipc isntance as a callback function parameter within the connect/connectNet method call, it runs the callback function before the connect/connectNet method, as expected.

Great module btw, thank you! =)