RTSession.onPlayerConnect event, when it happens?
I never get this to work.
I have two-player game, using sdk for iOS.
So, i've created a match and assigned the real-time script.
Docs says, this event called when player is connected to the RT-Session, but i can't find any way to connect player to the session.
I've setup my match in the following way:
Once matchFoundMessage arrives, i'm sending
Don't know if this is right way to create the match for two players.
But there's lack of tutorials for iOS framework.
But, at some time when challenges being set i need to initialize some variables on cloud code side. The only place, where i can do is RTSession, where the code executes for both players, not per each of them. But RTSession.* listeners doesn't get called. Need some help here.