mirror of
https://github.com/dani/vroom.git
synced 2024-06-01 21:11:41 +02:00
Send SocketIO msg when broadcasting
This commit is contained in:
parent
6396da021e
commit
24751b0fbe
2
vroom.pl
2
vroom.pl
|
@ -1139,7 +1139,7 @@ helper signal_broadcast_room => sub {
|
||||||
next if !$peers->{$data->{from}}->{room};
|
next if !$peers->{$data->{from}}->{room};
|
||||||
next if !$peers->{$peer}->{room};
|
next if !$peers->{$peer}->{room};
|
||||||
next if $peers->{$peer}->{room} ne $peers->{$data->{from}}->{room};
|
next if $peers->{$peer}->{room} ne $peers->{$data->{from}}->{room};
|
||||||
$self->redis->publish('signaling:peer:' . $peer, Mojo::JSON::to_json($data->{msg}));
|
$self->redis->publish('signaling:peer:' . $peer, Mojo::JSON::to_json(Protocol::SocketIO::Message->new(%{$data->{msg}})));
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user