GearmaNode
GearmaNode copied to clipboard
Feature/error on no server
If "_getJobServer" method doesn't return a valid JobServer, an error is emitted. The event could be fired before any 'error' event listeners are attached. This could crash the process.
Using nextTick, the developer is able to add an 'error' handler.
On connect method, the callback should be called only one time. The security guard is a good thing