private async Task AddToRoom(User user, Guid roomId) { _chatState.GetUser(Context.ConnectionId).Rooms.Add(roomId); await Groups.AddToGroupAsync(Context.ConnectionId, $"R{roomId}"); await Clients.Group($"R{roomId}").SendAsync("UserStatus", Dto.CreateUserJoinedDto(user)); }