Fix 100% cpu usage and terminal issue by downgrading Node.js to 18.17.1 (#186)

* Downgrade from Node.js 20 to Node.js 18.17.1

* Enable back socket.io polling

* Avoid multiple commands at the same for a stack
This commit is contained in:
Louis Lam
2023-11-26 17:51:26 +08:00
committed by GitHub
parent 0546f6a24e
commit b5f6919bab
5 changed files with 17 additions and 24 deletions

View File

@@ -195,7 +195,6 @@ export class DockgeServer {
// Create Socket.io
this.io = new socketIO.Server(this.httpServer, {
cors,
transports: [ "websocket" ],
});
this.io.on("connection", async (socket: Socket) => {