The implementation of websocket in failover proxy causes the app to open multiple websocket connections. This is an async operation. There is no guarantee that the index that comes first will be the websocket that opens first. Using for loops with async functions, we need to await to make sure that we know what we are getting. We also need to await this async method. Currently it is called in the constructor where await is not supported. Move this call to initialization.
Fix resolved to resolve typo.