From 21d4be378e34f6ac12671843c7c9ff4a5e59cb7e Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 5 Dec 2017 18:58:27 +0100 Subject: [PATCH] tmp: view.main (removed temporarily websocket/connect to clean network log and SeekDaSky websocket logs) --- view/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/view/main.js b/view/main.js index ebb360e..c4d763f 100755 --- a/view/main.js +++ b/view/main.js @@ -48,7 +48,7 @@ gstore.data.func.nav(router, null); /* (3) Set WebSocket channels ---------------------------------------------------------*/ /* (1) Connection channel */ -window.wsc_connect = wsc.channel('connect').listen(function(msg, err){ +/*NO_WS_CONNECT*//*window.wsc_connect = wsc.channel('connect').listen(function(msg, err){ // {1} Manage error // if( msg == null && err != null ) @@ -68,7 +68,7 @@ window.wsc_connect = wsc.channel('connect').listen(function(msg, err){ // {4} Reset notification count if already on page // gstore.data.func.nav(router, null); -}).send({name: _SERVER.session.name}); +}).send({name: _SERVER.session.name}); */ /* (2) Message channel */ @@ -101,5 +101,5 @@ window.wsc_chat = wsc.channel('chat').listen(function(msg, err){ ---------------------------------------------------------*/ window.onbeforeunload = function() { wsc_chat.send('{"close": true}'); - wsc_connect.send('{"close": true}'); + /*NO_WS_CONNECT*///wsc_connect.send('{"close": true}'); }; \ No newline at end of file