Notification when a user forcibly disconnect from current room
This commit is contained in:
parent
6352d3ee94
commit
9205eb93b0
|
@ -41,7 +41,6 @@ app.io.sockets.on('connection', function(socket) {
|
||||||
// Notify other users of the room
|
// Notify other users of the room
|
||||||
if( socket.current_room !== undefined ) {
|
if( socket.current_room !== undefined ) {
|
||||||
socket.broadcast.to(socket.current_room).emit('message:server', 'A person left this room');
|
socket.broadcast.to(socket.current_room).emit('message:server', 'A person left this room');
|
||||||
console.log('Person left' + socket.current_room);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue