mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying a better disconnect event
This commit is contained in:
@@ -374,6 +374,13 @@ module.exports = function() {
|
||||
List.left_channel(coll, guid, short_id, in_list, socket, false);
|
||||
});
|
||||
|
||||
socket.on("left_channel", function(msg) {
|
||||
if(msg.hasOwnProperty("channel") && msg.channel != "" && typeof(msg.channel) == "string") {
|
||||
coll = msg.channel;
|
||||
List.left_channel(coll, guid, short_id, in_list, socket, false);
|
||||
}
|
||||
})
|
||||
|
||||
socket.on('reconnect_failed', function()
|
||||
{
|
||||
List.left_channel(coll, guid, short_id, in_list, socket, false);
|
||||
|
||||
Reference in New Issue
Block a user