Skip to content

Commit

Permalink
Fix the join room variable reference error.
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhau committed Nov 5, 2013
1 parent 1bf1d15 commit 57783a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hooks/sockets/interpreter/interpret.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ module.exports = function (sails) {
req.join = function (roomName) {

// TODO: add support for optional callback (for use w/ redis)
return this.socket.join(room);
return this.socket.join(roomName);
};
req.subscribe = req.join;
req.listen = req.join;
Expand Down Expand Up @@ -660,4 +660,4 @@ module.exports = function (sails) {
};


};
};

0 comments on commit 57783a3

Please sign in to comment.