This is messy lol

This commit is contained in:
Christopher Cookman 2024-09-04 08:17:30 -06:00
parent 5e7a0576e5
commit a6c27d63d2
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -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);
}) })