1
0
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:
Daniel Berteaud 2015-08-06 18:08:07 +02:00
parent 6396da021e
commit 24751b0fbe

View File

@ -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;
}; };