— I'm just two days using JavaScript, my questions are dumb for you probably
— I'm not used to so many callbacks, just trying to get used to
— You can make your own checker, it's one day thinking about setTimeout()
— Which checks the result, if it's ready connected or not connected, or..
— Ah, yes, this is what I did
— You did by.. including dependency? drop a link on that lib
— Just using EventEmitter
— If the global connection is not yet available, I just do a event.on('event_name')
— So when event.emit('event_name') will be signaled, global connection will be available