Updated the server.js
This commit is contained in:
parent
9a6fc17a71
commit
3f20e8eb42
@ -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 = {};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user