| 12345678910111213141516 |
- namespace Application.Abstractions.Chat;
- public interface IChatConnectionTracker
- {
- Task AddAsync(string roomKey, ConnectedUser user);
- Task RemoveAsync(string roomKey, string connectionId);
- Task<IReadOnlyList<ConnectedUser>> GetByRoomAsync(string roomKey);
- Task<int> GetCountByRoomAsync(string roomKey);
- // 전체 룸에 걸친 접속자 + 룸 키 (관리자 집계용)
- Task<IReadOnlyList<(
- string RoomKey,
- ConnectedUser User
- )>> GetAllAsync();
- Task ClearAllAsync();
- }
|