diff --git a/view/main.js b/view/main.js index d99e6c5..cc0e510 100755 --- a/view/main.js +++ b/view/main.js @@ -60,6 +60,7 @@ window.wsc_connect = window.wsc.channel('connect').listen(function(msg, err){ } // {3} Manage notification // + console.log('Detected '+msg.connected.length+' new user(s)'); window.gstore.data.notif[0].data = window.gstore.data.notif[0].data.concat( msg.connected ); }).send({name: window._SERVER.session.name}); @@ -90,6 +91,7 @@ window.wsc_chat = window.wsc.channel('chat').listen(function(msg, err){ } // {3} Manage notification // + console.log('Received '+msg.msg.length+' new message(s)'); window.gstore.data.notif[1].data = window.gstore.data.notif[1].data.concat( msg.msg ); }).send({name: window._SERVER.session.name});