@page "/app" @using Selector.SignalR @inject NowHubClient nowClient @inject NowHubCache nowCache @inject ILogger logger

Hello, world!

Welcome to your new app. @code { protected async override Task OnInitializedAsync() { if (nowClient.State == Microsoft.AspNetCore.SignalR.Client.HubConnectionState.Disconnected) { logger.LogInformation("Starting now hub connection"); await nowClient.StartAsync(); nowCache.BindClient(); await nowClient.OnConnected(); } } }