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