Get Current region?
Comments
-
Hi @coldev.
In case that you have connected withRegionSelectionMode::BEST
, the Client is connected to the region that is returned bygetRegionWithBestPing()
.
In case that you have connected withRegionSelectionMode::SELECT
, it's connected to the region that you have selected, so you can simply store your choice when you callselectRegion()
, in case that you want to check it at a later state.
In case that you have connected withRegionSelectionMode::DEFAULT
its just always connected to the default region. This is simply the first entry in the list of available regions and if you connect to the public cloud and have not restricted the available regions in the dashboard, the this should normally mean region 'eu'.
However if the region-choice is relevant enough for you to ask for how to retrieve the current region, then you probably should not useRegionSelectionMode::DEFAULT
anyway, as it basically means "I don't care about the region, as long as every client connects to the same region".0 -
thanks... very usefull info...0