APP.conference._room

Hi everyone,
I have a jitsi docker installation working with jwt autthentication and in the web container i add some javascript to add eventlisteners on APP.conference._room and using some methods like countParticipants.
My only problem is that APP.conference._room is available after 3 or 4 seconds (App.conference is almost immediate). i am using some timeout to verify if its ready.

Theres another way to accelerate this process?

Thank you