From 24751b0fbe60d670d27e0e3eac260d21a5bfbd24 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 6 Aug 2015 18:08:07 +0200 Subject: [PATCH] Send SocketIO msg when broadcasting --- vroom.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vroom.pl b/vroom.pl index 3c75f71..b63eec1 100755 --- a/vroom.pl +++ b/vroom.pl @@ -1139,7 +1139,7 @@ helper signal_broadcast_room => sub { next if !$peers->{$data->{from}}->{room}; next if !$peers->{$peer}->{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; };