public async Task Initialize()
{
_hubConnection.Received += OnReceived;
_hubConnection.Closed += OnClosed;
_hubConnection.Reconnecting += OnReconnecting;
_hubConnection.Reconnected += OnReconnected;
_hubConnection.ConnectionSlow += OnConnectionSlow;
_hubConnection.Error += OnError;
_hubConnection.StateChanged += OnStateChanged;
await StartConnectionInternal();
}