Message from JavaScript discussions
August 2018
— Mongoose creates a connection and reuses it
The problem with globals is as usual, it is not available when you use if if you don't wait for an event or so
— Oh, ill look for it, thanks
— Ye, it's not available, so what
— Wait until
— Yep, but I can't force client to wait until something always, but wrapping it inside a function isn't that bad
— Client is automaticly forced to wait, if it synchroneous or asynchoneous
— In async, he/user can make other things, read some "please wait.." or abort or .. in synchro, all events freeze.
— I know is better, just wanted to know on how to offer always the same connection to something, event emitter solves this
— 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()