You are reading a single comment by @rj and its replies.
Click here to read the full conversation.
-
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 😊.
Although the code could be refactored so the
connect
call returns a promise, and you could do Promise.catch.