To replicate the issue (I am missing the type of connection):
this.oada = await connect({ domain: this.domain, token: this.token })
.catch(e => {
console.log("Error -> failed to connect to OADA. The error was ", e);
});
I got this:
Error -> failed to connect to OADA. The error was TypeError: emitter.once is not a function
A more descriptive error message is needed.