Fix update callback
authorgparant <g.parant@thecodingmachine.com>
Sun, 3 May 2020 14:30:22 +0000 (16:30 +0200)
committergparant <g.parant@thecodingmachine.com>
Sun, 3 May 2020 14:30:22 +0000 (16:30 +0200)
back/src/Controller/IoSocketController.ts

index e57f550e0ee04bc29d7770453a46c72e4509a356..560deed7be7520719cd7bab7d43154a2ce74085f 100644 (file)
@@ -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);
         });
     }