1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-18 04:09:14 +02:00

Do not broadcast signaling message if not needed

This commit is contained in:
Daniel Berteaud 2015-08-07 12:01:18 +02:00
parent b8a9ac97fe
commit 5c3090302d

2
vroom
View File

@ -1398,7 +1398,7 @@ websocket '/socket.io/:ver/websocket/:id' => sub {
$self->redis->publish('signaling:peer:' . $to, Mojo::JSON::to_json($msg));
}
# No dest, multicast this to every members of the room
else{
elsif (!$to){
$self->signal_broadcast_room({
from => $id,
msg => $msg