LINXD-2222: Update

This commit is contained in:
Sergiu Toma 2022-09-19 18:06:39 +03:00
parent 53a654c50f
commit f20c7fada8
1 changed files with 1 additions and 2 deletions

3
app.js
View File

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