Merge pull request #720 from h42i/fix/metrics

Fix workadventure_nb_clients_per_room in pusher
This commit is contained in:
David Négrier 2021-02-11 17:18:50 +01:00 committed by GitHub
commit a4bddbf4fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,6 +172,7 @@ export class SocketManager implements ZoneEventListener {
console.log('Calling joinRoom')
const apiClient = await apiClientRepository.getClient(client.roomId);
const streamToPusher = apiClient.joinRoom();
clientEventsEmitter.emitClientJoin(client.userUuid, client.roomId);
client.backConnection = streamToPusher;