minmod (debug ws-client response)
This commit is contained in:
parent
dfe9843845
commit
54757ef460
|
@ -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});
|
||||
|
|
Loading…
Reference in New Issue