initAndConnect method

Future<void> initAndConnect()

Public entrypoint to connect when credentials/URLs are ready.

Implementation

Future<void> initAndConnect() async {
  if (isConnected.value || _hubConnection != null) return;
  await _initializeSignalR();
}