LINXD-2222: Update
This commit is contained in:
parent
043f66eb0c
commit
507c131058
7
app.js
7
app.js
@ -9,7 +9,8 @@ const app = express();
|
||||
const Server = require('socket.io');
|
||||
const path = require('node:path');
|
||||
const fs = require('node:fs');
|
||||
let https = require('http');;
|
||||
const https = require('httpolyglot');
|
||||
// let https = require('https');
|
||||
// try {
|
||||
// https = require('node:https');
|
||||
// } catch (err) {
|
||||
@ -55,7 +56,9 @@ const options = {
|
||||
|
||||
// const httpsServer = https.createServer(options, app);
|
||||
// const io = new Server(httpsServer, { allowEIO3: true });
|
||||
const httpsServer = https.createServer(options, app);
|
||||
const httpsServer = https.createServer(options, app, function(req, res) {
|
||||
console.log('🟢 HTTP req', req);
|
||||
});
|
||||
|
||||
httpsServer.listen(process.env.PORT, () => {
|
||||
console.log('Listening on port:', process.env.PORT)
|
||||
|
Loading…
Reference in New Issue
Block a user