Skip to content

Commit

Permalink
Added more info
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Jul 14, 2014
1 parent e7222de commit 501b069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hooks/pubsub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,6 @@ module.exports = function(sails) {
*
* @api public
*/

subscribe: function (req, records, contexts) {
// If a request object was sent, get its socket, otherwise assume a socket was sent.
var socket = req.socket ? req.socket : req;
Expand All @@ -624,6 +623,7 @@ module.exports = function(sails) {

// Subscribe to class room to hear about new records
if (!records) {
sails.log.warn('Missing or empty second argument `records`. API is `.subscribe(request, records [, contexts])`.');
STRINGFILE.logDeprecationNotice(
'Model.subscribe(socket, null, ...)',
STRINGFILE.get('links.docs.sockets.pubsub'),
Expand Down

0 comments on commit 501b069

Please sign in to comment.