Log an event when a peer joins

master
Daniel Berteaud 9 years ago
parent 2308580ac4
commit 489ad3aaae
  1. 4
      templates/default/documentation.html.ep
  2. 4
      vroom.pl

@ -752,6 +752,10 @@ systemctl restart vroom.service</pre>
<td>A peer is being denied because member limit is already reached</td> <td>A peer is being denied because member limit is already reached</td>
</tr> </tr>
<tr> <tr>
<td>room_join</td>
<td>A peer joins a room</td>
</tr>
<tr>
<td>room_leave</td> <td>room_leave</td>
<td>A peer leaves a room</td> <td>A peer leaves a room</td>
</tr> </tr>

@ -1273,6 +1273,10 @@ websocket '/socket.io/:ver/websocket/:id' => sub {
] ]
) )
); );
$self->log_event({
event => 'room_join',
msg => "Peer $id has joined room $room"
});
# Update room last activity # Update room last activity
$self->update_room_last_activity($room); $self->update_room_last_activity($room);
} }

Loading…
Cancel
Save