initialize method
Initializes the client and prepares it for for use. A client must be initialized before any of the other attributes or functions may be called.
Once a client has been initialized, future calls to this will be an effective no-op until / unless this is disposed.
Implementation
Future<void> initialize() async {
if (!_initialized) {
_logger.info('[initialize]: start');
await _reconnect(closePrevious: false);
_initialized = true;
_logger.info('[initialize]: complete');
}
}