public override async Task OnConnectedAsync() { try { ConnectionInfo.Add(this.Context); await Groups.AddToGroupAsync(this.Context.ConnectionId, GroupId); } catch { Context.Abort(); } }