mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
fix: Socket bug fixes and improvements
This commit is contained in:
parent
694fa17bdf
commit
e623e8a3a8
6 changed files with 53 additions and 32 deletions
|
@ -59,6 +59,10 @@ module.exports = function defineCurrentUserHook(sails) {
|
|||
accessToken,
|
||||
currentUser,
|
||||
});
|
||||
|
||||
if (req.isSocket) {
|
||||
sails.sockets.join(req, `@user:${currentUser.id}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue