public override async Task OnConnectedAsync() { var context = Context.GetHttpContext(); var uuid = context.Request.Query["uuid"]; if (string.IsNullOrEmpty(uuid)) { Context.Abort(); // abort connection return; } var connectionId = Context.ConnectionId; await _userStore.AddConnectionAsync(uuid, connectionId); //await _presenceService.AddConnectionAsync(uuid, connectionId); }