Minor comment

This commit is contained in:
Daniel Berteaud 2015-11-26 18:10:20 +01:00
parent eaac817594
commit 1065b747fe
1 changed files with 3 additions and 2 deletions

5
vroom
View File

@ -1296,8 +1296,7 @@ websocket '/socket.io/:ver/websocket/:id' => sub {
my $key = $self->session('key');
# Add the peer on redis
$self->add_peer($id,
{
$self->add_peer($id, {
last => time,
id => $self->session('id'),
check_invitations => 1
@ -1306,6 +1305,8 @@ websocket '/socket.io/:ver/websocket/:id' => sub {
$self->redis->subscribe(['signaling:peer:' . $id]);
# This callback will send the message to the peer through
# websocket when received on the personnal channel
$cb = $self->redis->on(message => sub {
my ($redis, $message, $channel) = @_;
$self->tx->send(Protocol::SocketIO::Message->new->parse(Mojo::JSON::from_json($message)))