mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added user/left notificationcenter trigger, because bodies on the server were not destroyed when user disconnected
This commit is contained in:
parent
9d23898018
commit
a852bccae6
1 changed files with 1 additions and 0 deletions
|
|
@ -55,6 +55,7 @@
|
|||
Channel.prototype.onReleaseUser = function (userId) {
|
||||
var user = this.users[userId];
|
||||
this.sendControlCommandToAllUsersExcept("userLeft", user.id, user);
|
||||
NotificationCenter.trigger('user/left', user);
|
||||
delete this.users[user.id];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue