fix author notification handler
parent
af3e8e5e15
commit
f418dfa205
|
@ -1179,8 +1179,14 @@ function handleClientReady(client, message)
|
||||||
client.broadcast.to(padIds.padId).json.send(messageToTheOtherUsers);
|
client.broadcast.to(padIds.padId).json.send(messageToTheOtherUsers);
|
||||||
|
|
||||||
//Run trough all sessions of this pad
|
//Run trough all sessions of this pad
|
||||||
/*
|
var roomClients = [], room = socketio.sockets.adapter.rooms[pad.id];
|
||||||
async.forEach(socketio.sockets.clients(padIds.padId), function(roomClient, callback)
|
if (room) {
|
||||||
|
for (var id in room) {
|
||||||
|
roomClients.push(socketio.sockets.adapter.nsp.connected[id]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async.forEach(roomClients, function(roomClient, callback)
|
||||||
{
|
{
|
||||||
var author;
|
var author;
|
||||||
|
|
||||||
|
@ -1226,7 +1232,6 @@ function handleClientReady(client, message)
|
||||||
}
|
}
|
||||||
], callback);
|
], callback);
|
||||||
}, callback);
|
}, callback);
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
],function(err)
|
],function(err)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue