This is messy lol
This commit is contained in:
parent
5e7a0576e5
commit
a6c27d63d2
8
index.js
8
index.js
|
@ -33,11 +33,9 @@ app.put('/api/connect/:jobid', (req, res) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
ws_[id].open = false;
|
ws_[id].open = false;
|
||||||
setInterval(() => {
|
ws_[id].connection.on('open', () => {
|
||||||
ws_[id].connection.on('open', () => {
|
ws_[id].open = true;
|
||||||
ws_[id].open = true;
|
});
|
||||||
});
|
|
||||||
})
|
|
||||||
ws_[id].connection.on("error", () => {
|
ws_[id].connection.on("error", () => {
|
||||||
res.status(500);
|
res.status(500);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue