1
0

Updated the server.js

This commit is contained in:
Mathias Wagner 2023-11-22 12:08:51 +01:00
parent 9a6fc17a71
commit 3f20e8eb42
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -1,5 +1,6 @@
const httpServer = require("http").createServer(); 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 = {}; const rooms = {};