From 54757ef460a4c92a7b81988f609c1ce4ffb4a1fe Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 4 Dec 2017 14:59:36 +0100 Subject: [PATCH] minmod (debug ws-client response) --- view/main.js | 2 ++ 1 file changed, 2 insertions(+) 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});