diff --git a/view/main.js b/view/main.js index c57a163..a583407 100755 --- a/view/main.js +++ b/view/main.js @@ -81,6 +81,6 @@ window.wsc_chat = window.wsc.channel('chat').listen(function(msg, err){ /* (4) Clean sockets before page quit ---------------------------------------------------------*/ window.onbeforeunload = function() { - window.wdc_chat.ws.close(); - window.wdc_connect.ws.close(); + window.wsc_chat.ws.close(); + window.wsc_connect.ws.close(); }; \ No newline at end of file