Updated the server.js

This commit is contained in:
Mathias committed 2023-11-22 12:08:51 +01:00
1 parent 9a6fc17a71
commit 3f20e8eb42
1 file changed
+2 -1
+2 -1
View File
@@ -1,5 +1,6 @@
const httpServer = require("http").createServer();
const io = require("socket.io")(httpServer, {cors: {origin: "*"}});
const io = require("socket.io")(httpServer, {cors: {origin: "*", connectionStateRecovery: {
maxDisconnectionDuration: 1000}}});
const rooms = {};