Fix https import
This commit is contained in:
parent
be5f97762a
commit
fce2f30648
7
app.js
7
app.js
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user