LINXD-2222: Update
This commit is contained in:
parent
53a654c50f
commit
f20c7fada8
3
app.js
3
app.js
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user