fixed slate updating upon upload issue

This commit is contained in:
Martina 2021-01-09 17:58:36 -08:00 committed by tarafanlin
parent 2c33ef195f
commit 0446954674

View File

@ -34,8 +34,17 @@ export const create = () => {
});
ws.on("close", () => {
<<<<<<< HEAD
console.log(global.websocket);
console.log("Websocket disconnected");
=======
global.websocket = null;
setTimeout(() => {
NodeLogging.log(`Auto reconnecting websocket`);
create();
}, 1000);
NodeLogging.log(`Websocket disconnected`);
>>>>>>> fixed slate updating upon upload issue
});
NodeLogging.log(`Websocket server started`);