LINXD-2222: Update

This commit is contained in:
Sergiu Toma 2022-09-19 17:00:43 +03:00
parent 43eee11c7e
commit 05ccd5cfd4

4
app.js
View File

@ -54,8 +54,8 @@ const options = {
cert: fs.readFileSync('./server/ssl/cert.pem', 'utf-8') cert: fs.readFileSync('./server/ssl/cert.pem', 'utf-8')
} }
const server = https.createServer(options, app); const httpsServer = https.createServer(options, app);
const io = new Server(server, { allowEIO3: true }); const io = new Server(httpsServer, { allowEIO3: true });
// const io = new Server(server, { origins: '*:*', allowEIO3: true }); // const io = new Server(server, { origins: '*:*', allowEIO3: true });
// io.use(middleware); // io.use(middleware);