upd: view.main (removed websocket closing protocol (PING/PONG will destroy it automatically))

This commit is contained in:
xdrm-brackets 2017-12-06 18:23:48 +01:00
parent 5d9e6ef83f
commit 926f5d1224
1 changed files with 1 additions and 10 deletions

View File

@ -123,12 +123,3 @@ window.wsc_chat = wsc.channel('chat').listen(function(msg, err){
gstore.data.notif[1].count += msg.msg.length gstore.data.notif[1].count += msg.msg.length
}).send({name: _SERVER.session.name}); }).send({name: _SERVER.session.name});
/* (4) Clean sockets before page quit
---------------------------------------------------------*/
window.onbeforeunload = function() {
wsc_chat.send('{"close": true}');
wsc_connect.send('{"close": true}');
};