LINXD-2222: Update

This commit is contained in:
Sergiu Toma 2022-09-19 18:02:30 +03:00
parent d54403299f
commit 53a654c50f

5
app.js
View File

@ -70,6 +70,11 @@ const options = {
// const httpsServer = https.createServer(options, app);
// const io = new Server(httpsServer, { allowEIO3: true });
const httpsServer = https.createServer(app, options);
app.get('/', (req, res) => {
res.send('Now using https..');
});
const io = new Server(httpsServer, {
origins: '*:*',
allowRequest: (req) => {