This commit is contained in:
Baris Usakli
2013-09-03 13:11:34 -04:00
parent e9054301d1
commit a2af4a3e91
2 changed files with 8 additions and 2 deletions

View File

@@ -259,6 +259,7 @@ var RDB = require('./redis.js'),
var socketData = { posts: [postData] };
io.sockets.in('topic_' + tid).emit('event:new_post', socketData);
io.sockets.in('recent_posts').emit('event:new_post', socketData);
io.sockets.in('users/' + uid).emit('event:new_post', socketData);
});
callback(null, 'Reply successful');