Enforce Websocket (#181)

* Always show Down button

* Force WebSocket

* Force WebSocket
This commit is contained in:
Louis Lam
2023-11-25 21:21:23 +08:00
committed by GitHub
parent 457f038108
commit d23e2d8aa1
5 changed files with 26 additions and 4 deletions

View File

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