Fix https import

This commit is contained in:
Sergiu Toma 2022-10-18 18:07:04 +03:00
parent be5f97762a
commit fce2f30648

7
app.js
View File

@ -5,12 +5,7 @@ const app = express();
const Server = require('socket.io'); const Server = require('socket.io');
const path = require('node:path'); const path = require('node:path');
const fs = require('node:fs'); const fs = require('node:fs');
let https; const https = require('node:https');
try {
https = require('node:https');
} catch (err) {
console.log('https support is disabled!');
}
const mediasoup = require('mediasoup'); const mediasoup = require('mediasoup');
let worker let worker