maritz/nohm — pull request #56 by runexec (2012-03-25 17:49:03+00:00)
Title: Fixed getClient()/setClient() Bug

https://github.com/runexec/nohm/blob/master/lib/nohm.js#L144

Nohm.setClient = function (client) {
Nohm.client = client;
//
// getClient/setClient No connection patch
// (github.com/runexec) - Monday 3/26/12 2:31 AM JST
//
connected_client = (require('util').inspect(Nohm).indexOf('stream') != -1) ? true : false;

if(!connected_client) {
throw 'setClient() : Invalid Client() or Client() not connected.';
}
};