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