mindspank / qsocks

A lightweight promise wrapper around the Qlik Sense Engine API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reject promise on connection refuse

mindspank opened this issue · comments

Make sure to reject the promise in the onerror handler.
this.ws.onerror = function (ev) {
if (error) {
console.log(ev.message);
error();
}
self.ws = null;
};