diff --git a/app.js b/app.js index eb9f022..dff8aea 100644 --- a/app.js +++ b/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)