mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
extended client server communication
This commit is contained in:
parent
94f63fc7b2
commit
81d2aa4ddc
12 changed files with 156 additions and 86 deletions
|
|
@ -18,6 +18,7 @@ define(["Server/User", "Server/Channel"], function(User, Channel) {
|
|||
}
|
||||
|
||||
Coordinator.prototype.assignUserToChannel = function(user, channelName){
|
||||
|
||||
if(user.channel) {
|
||||
user.channel.releaseUser(user);
|
||||
}
|
||||
|
|
@ -39,6 +40,12 @@ define(["Server/User", "Server/Channel"], function(User, Channel) {
|
|||
delete this.lobbyUsers[user.id];
|
||||
}
|
||||
|
||||
Coordinator.prototype.removeUser = function(user){
|
||||
delete this.lobbyUsers[user.id];
|
||||
if(user.channel) {
|
||||
user.channel.releaseUser(user);
|
||||
}
|
||||
}
|
||||
|
||||
return Coordinator;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue