[mirotalksfu] - refactoring, update dep
هذا الالتزام موجود في:
@@ -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);
|
||||
}
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم