[mirotalksfu] - refactoring, update dep

هذا الالتزام موجود في:
Miroslav Pejic
2024-03-09 19:14:15 +01:00
الأصل 7bad2b4b96
التزام 1e46345149
6 ملفات معدلة مع 362 إضافات و351 حذوفات

عرض الملف

@@ -104,7 +104,7 @@ module.exports = class Room {
};
// Uncomment the following line for debugging
// log.debug('Sending audio volume', data);
this.broadCast(0, 'audioVolume', data);
this.sendToAll('audioVolume', data);
}
});
});
@@ -510,6 +510,12 @@ module.exports = class Room {
}
}
sendToAll(action, data) {
for (let peer_id of Array.from(this.peers.keys())) {
this.send(peer_id, action, data);
}
}
send(socket_id, action, data) {
this.io.to(socket_id).emit(action, data);
}