[mirotlaksfu] - add survey in config.js

هذا الالتزام موجود في:
Miroslav Pejic
2023-05-12 09:35:44 +02:00
الأصل edab82f809
التزام 37734cdfca
5 ملفات معدلة مع 20 إضافات و7 حذوفات

عرض الملف

@@ -7,6 +7,7 @@ const log = new Logger('Room');
module.exports = class Room {
constructor(room_id, worker, io) {
this.id = room_id;
this.survey = config.survey;
this.worker = worker;
this.router = null;
this.audioLevelObserver = null;
@@ -114,6 +115,7 @@ module.exports = class Room {
toJson() {
return {
id: this.id,
survey: this.survey,
peers: JSON.stringify([...this.peers]),
};
}

عرض الملف

@@ -106,6 +106,16 @@ module.exports = {
return `https://get.geojs.io/v1/ip/geo/${ip}.json`;
},
},
survey: {
/*
QuestionPro
1. GoTo https://www.questionpro.com/
2. Create your account
3. Create your custom survey
*/
enabled: false,
url: '',
},
mediasoup: {
// Worker settings
numWorkers: Object.keys(os.cpus()).length,