minmod (debug ws-client response)

This commit is contained in:
xdrm-brackets 2017-12-04 14:59:36 +01:00
parent dfe9843845
commit 54757ef460
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ window.wsc_connect = window.wsc.channel('connect').listen(function(msg, err){
} }
// {3} Manage notification // // {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 ); window.gstore.data.notif[0].data = window.gstore.data.notif[0].data.concat( msg.connected );
}).send({name: window._SERVER.session.name}); }).send({name: window._SERVER.session.name});
@ -90,6 +91,7 @@ window.wsc_chat = window.wsc.channel('chat').listen(function(msg, err){
} }
// {3} Manage notification // // {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 ); window.gstore.data.notif[1].data = window.gstore.data.notif[1].data.concat( msg.msg );
}).send({name: window._SERVER.session.name}); }).send({name: window._SERVER.session.name});