fix: new close protocol (close: true) because GoogleChrome does not send the close handshake (test@1)
This commit is contained in:
parent
0f1d995c94
commit
3862675b1d
|
@ -91,6 +91,6 @@ window.wsc_chat = window.wsc.channel('chat').listen(function(msg, err){
|
|||
/* (4) Clean sockets before page quit
|
||||
---------------------------------------------------------*/
|
||||
window.onbeforeunload = function() {
|
||||
window.wsc_chat.ws.close();
|
||||
window.wsc_connect.ws.close();
|
||||
window.wsc_chat.send('{"close": true}');
|
||||
window.wsc_connect.send('{"close": true}');
|
||||
};
|
Loading…
Reference in New Issue