@attribute [Authorize] @page "/play/{sessionId}" @inject GameHubNode node @if (string.IsNullOrWhiteSpace(SessionId)) { return; }
@code { [Parameter] public string? SessionId { get; set; } protected override async Task OnParametersSetAsync() { if (!node.IsConnected) { await node.BeginListen(); } } }