Merge a68c661221
into c5af6df7fa
This commit is contained in:
commit
c7c5dbc13d
1 changed files with 6 additions and 0 deletions
|
@ -161,6 +161,12 @@ export class IoSocketController {
|
||||||
}
|
}
|
||||||
|
|
||||||
const userUuid = await jwtTokenManager.getUserUuidFromToken(token);
|
const userUuid = await jwtTokenManager.getUserUuidFromToken(token);
|
||||||
|
const client = socketManager.searchClientByUuid(userUuid);
|
||||||
|
//if client socket exist, close connexion
|
||||||
|
if(client){
|
||||||
|
console.info(`Close connexion, client with uuid : ${userUuid} already exist !`);
|
||||||
|
socketManager.leaveRoom(client);
|
||||||
|
}
|
||||||
|
|
||||||
let memberTags: string[] = [];
|
let memberTags: string[] = [];
|
||||||
let memberTextures: CharacterTexture[] = [];
|
let memberTextures: CharacterTexture[] = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue