I've been looking at the colyseus-examples repository. All the examples are very instructive. However, in the create-or-join-room example, I'm unable to figure out how the room creation is happening.
Both for joining or creating the room the code in create-or-join-room.html seems to be calling the client.join function. When additional options are being passed isNewRoom is also being set to true. I'm unable to figure out how it's working. When does isNewRoom set to true? I can also see onInit for the room being called before requestJoin.
Could you please explain the flow of the code? I've looked into the code of MatchMaking.ts but haven't figured out the flow yet.
Thanks,
Madki