diff --git a/app.js b/app.js index 7421cee..9ed6227 100644 --- a/app.js +++ b/app.js @@ -69,7 +69,7 @@ const options = { // const httpsServer = https.createServer(options, app); // const io = new Server(httpsServer, { allowEIO3: true }); const httpsServer = https.createServer(app); -const io = require('socket.io')(server, options); +const io = require('socket.io')(httpsServer, options); // const io = new Server(server, { origins: '*:*', allowEIO3: true }); // io.use(middleware);