From 16cdaa8ed5a3d77b30a8ac70556fc219004446ac Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 26 Nov 2023 17:28:53 +0800 Subject: [PATCH] Enable back socket.io polling --- backend/dockge-server.ts | 1 - frontend/src/mixins/socket.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/dockge-server.ts b/backend/dockge-server.ts index c4a358f..7aaba63 100644 --- a/backend/dockge-server.ts +++ b/backend/dockge-server.ts @@ -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) => { diff --git a/frontend/src/mixins/socket.ts b/frontend/src/mixins/socket.ts index c85da3c..30c74e7 100644 --- a/frontend/src/mixins/socket.ts +++ b/frontend/src/mixins/socket.ts @@ -109,7 +109,7 @@ export default defineComponent({ }, 1500); socket = io(url, { - transports: [ "websocket" ] + transports: [ "websocket", "polling" ] }); socket.on("connect", () => {