Custom emitter allows you to do .error(function instead of .on('error', function. But i guess it will not make much difference here, since you shouldn't be attaching individual handlers to handle connection failures, but rather use a domain / let the error bubble up. Nevermind :)