networked-aframe / naf-valid-avatars

Example of using realistic animated avatars in networked-aframe.
https://naf-valid-avatars.glitch.me
MIT License
10 stars 0 forks source link

wait for the scene to be loaded before emitting connect #35

Closed vincentfretin closed 6 months ago

vincentfretin commented 6 months ago

There was a race condition between scene loaded (downloading a 22MB glb file produced the issue) and emitting connect for naf when clicking on the Enter button, the connect event didn't connect to the room and you were alone. I'm now waiting for the scene to be loaded before emitting the connect event, and showing the ui with mic, users, chat buttons when the scene is loaded.