Fix update callback
This commit is contained in:
parent
372f938bbb
commit
c48073b908
1 changed files with 4 additions and 4 deletions
|
@ -47,10 +47,10 @@ export class IoSocketController {
|
|||
this.shareUsersPosition();
|
||||
|
||||
//don't send only function because the context will be not this
|
||||
this.World = new World((user1: string, user2: string, group: Group) => {
|
||||
this.connectedUser(user1, user2, group);
|
||||
}, (user1: string, user2: string, group: Group) => {
|
||||
this.disConnectedUser(user1, user2, group);
|
||||
this.World = new World((user1: string, group: Group) => {
|
||||
this.connectedUser(user1, group);
|
||||
}, (user1: string, group: Group) => {
|
||||
this.disConnectedUser(user1, group);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue