[mirotalksfu] - add lobby

هذا الالتزام موجود في:
Miroslav Pejic
2022-09-28 22:50:57 +02:00
الأصل 79e0157ba2
التزام edf6a13a31
9 ملفات معدلة مع 429 إضافات و10 حذوفات

عرض الملف

@@ -14,6 +14,7 @@ module.exports = class Room {
this.audioLastUpdateTime = 0;
this.io = io;
this._isLocked = false;
this._isLobbyEnabled = false;
this._roomPassword = null;
this.peers = new Map();
this.createTheRouter();
@@ -266,10 +267,16 @@ module.exports = class Room {
isLocked() {
return this._isLocked;
}
isLobbyEnabled() {
return this._isLobbyEnabled;
}
setLocked(status, password) {
this._isLocked = status;
this._roomPassword = password;
}
setLobbyEnabled(status) {
this._isLobbyEnabled = status;
}
// ####################################################
// SENDER