• Although the code could be refactored so the connect call returns a promise, and you could do Promise.catch.

  • Yeah, this is what someone suggested on SO as well.

    If I've understood correctly, callbacks seem to be the general convention used across the project, so I think it would be more correct to have connect provide a callback-function with an error object/string, but perhaps I'm missing something 🙂.

    I'll leave messing with the modules to the pros 😊.


Avatar for rj @rj started