sails
Advanced tools
Comparing version 1.5.8 to 1.5.9
@@ -277,11 +277,10 @@ /** | ||
_.each(ids,function (id) { | ||
for (let id of ids) { | ||
// Attempt to join the room for the specified instance. | ||
if (sails.sockets.join( socket, self._room(id) )) { | ||
sails.log.silly( | ||
'Subscribed to the ' + | ||
self.globalId + ' with id=' + id + '\t(room :: ' + self._room(id) + ')' | ||
); | ||
} | ||
}); | ||
sails.sockets.join( socket, self._room(id) ); | ||
sails.log.silly( | ||
'Subscribed to the ' + | ||
self.globalId + ' with id=' + id + '\t(room :: ' + self._room(id) + ')' | ||
); | ||
}//∞ | ||
}, | ||
@@ -329,11 +328,10 @@ | ||
_.each(ids,function (id) { | ||
for (let id of ids) { | ||
// Attempt to leave the room for the specified instance. | ||
if (sails.sockets.leave( socket, self._room(id))) { | ||
sails.log.silly( | ||
'Unsubscribed from the ' + | ||
self.globalId + ' with id=' + id + '\t(room :: ' + self._room(id) + ')' | ||
); | ||
} | ||
}); | ||
sails.sockets.leave( socket, self._room(id)); | ||
sails.log.silly( | ||
'Unsubscribed from the ' + | ||
self.globalId + ' with id=' + id + '\t(room :: ' + self._room(id) + ')' | ||
); | ||
}//∞ | ||
}, | ||
@@ -340,0 +338,0 @@ |
{ | ||
"name": "sails", | ||
"author": "Mike McNeil <@mikermcneil>", | ||
"version": "1.5.8", | ||
"version": "1.5.9", | ||
"description": "API-driven framework for building realtime apps, using MVC conventions (based on Express and Socket.io)", | ||
@@ -84,4 +84,4 @@ "license": "MIT", | ||
"root-require": "0.3.1", | ||
"sails-hook-orm": "^3.0.0-0", | ||
"sails-hook-sockets": "^1.0.0-0", | ||
"sails-hook-orm": "^4.0.2", | ||
"sails-hook-sockets": "^3.0.0", | ||
"sails.io.js": "^1.0.0", | ||
@@ -88,0 +88,0 @@ "session-file-store": "1.1.2", |
3259094
32504