Ping the available regions

Hello, I'm using Realtime SDK. When i do ConnectToNameServer(), the OnRegionListReceived is called. Inside, i want to get the best region.
But when i ping the regions of regionHandler.EnabledRegions, i get default value (like int.MaxValue) for all. What am i missing ? Do I have to start coroutine or something ?

Thank you.


  • antigode
    Ok so for those who wonder: you have to call regionHandler.PingMinimumOfRegions(yourfunction,null) in OnRegionListReceived ;
    then in 'yourfunction', 'regionHandler.BestRegion' is well set, you can use it to connect.