Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions api/controllers/UserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ module.exports = {
if (err) return next(err);

// subscribe this socket to the User model classroom
User.subscribe(req.socket);
User.watch(req);

// subscribe this socket to the user instance rooms
User.subscribe(req.socket, users);
User.subscribe(req, users);

// This will avoid a warning from the socket for trying to render
// html over the socket.
res.send(200);
});
}

};
};