Updated the server.js

This commit is contained in:
2023-11-22 12:08:51 +01:00
parent 9a6fc17a71
commit 3f20e8eb42

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 = {};