LINXD-2222: Update

This commit is contained in:
Sergiu Toma 2022-09-19 18:06:39 +03:00
parent 53a654c50f
commit f20c7fada8

3
app.js
View File

@ -69,14 +69,13 @@ const options = {
// const httpsServer = https.createServer(options, app); // const httpsServer = https.createServer(options, app);
// const io = new Server(httpsServer, { allowEIO3: true }); // const io = new Server(httpsServer, { allowEIO3: true });
const httpsServer = https.createServer(app, options); const httpsServer = https.createServer(options, app);
app.get('/', (req, res) => { app.get('/', (req, res) => {
res.send('Now using https..'); res.send('Now using https..');
}); });
const io = new Server(httpsServer, { const io = new Server(httpsServer, {
origins: '*:*',
allowRequest: (req) => { allowRequest: (req) => {
console.log('req', req); console.log('req', req);
return true; return true;