Compare commits
2 commits
develop
...
uniq-socke
Author | SHA1 | Date | |
---|---|---|---|
a68c661221 | |||
367afa511b |
|
@ -159,6 +159,12 @@ export class IoSocketController {
|
|||
}
|
||||
|
||||
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 memberTextures: CharacterTexture[] = [];
|
||||
|
|
Loading…
Reference in a new issue