socket timeout set to 5 seconds

parent d915e6cd
......@@ -1444,7 +1444,10 @@ module.exports = {
attributes.ui
);
}
res.ok(sails.hooks.rooms.getUICount(room));
sails.hooks.rooms.getUICount(room, (info) => {
res.ok(info);
});
},
//
......
......@@ -49,7 +49,7 @@ module.exports = function roomsHook (sails) {
*/
notifyRoom: function(room) {
// Broadcast data to room's peers
sails.hooks.events.getUICount(room, (info) => {
sails.hooks.rooms.getUICount(room, (info) => {
sails.hooks.events.broadcastEvent(
room,
sails.hooks.events.roomSubscribersChange(info)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment