Hello all,
We are connecting to HMDS WebSockets using the EMA library and are creating the config dynamically. During the creation, we have 1 primary region and 2 back up regions, which are translated to a channel for each region.
The issue we have is that when a disconnect happens, the library will automatically switch to the next channel, which meant that it will switch to the back up region after 1 disconnect on primary. Back up regions do not work as well, so a disconnect will usually happen quite quickly on the back up channels, until it reaches the primary region again and which will work well after that.
Is there a way in which we could specify the reconnect strategy to the library? For example, after a disconnect happens it should retry connecting to the primary 3 times and only if all 3 times it fails should it try the back up channels. And if it reconnects successfully to the primary region, if another disconnect occurs, it will retry again 3 times the primary and so on.
Thanks