This commit is contained in:
Sergiu Toma 2022-10-18 18:22:19 +03:00
parent c4f72eddd5
commit b14e82fd87

4
app.js
View File

@ -62,8 +62,8 @@ const peers = io.of('/');
const createWorker = async () => {
try {
worker = await mediasoup.createWorker({
rtcMinPort: 2000,
rtcMaxPort: 2020,
rtcMinPort: process.env.RTC_MIN_PORT,
rtcMaxPort: process.env.RTC_MAX_PORT,
})
console.log(`[createWorker] worker pid ${worker.pid}`);