Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] 채팅 서버 유저 생성 로직, Redis Client 로직 분리 #6

Merged
merged 4 commits into from
Jan 14, 2025

Conversation

hoeeeeeh
Copy link
Collaborator

🚀 Issue Number

주요 작업

  • room.service.ts 에서 User 인스턴스 생성과 createUser, addUser 등의 로직을 전부 담당하고 있습니다.

고민과 해결 과정

  • User 생성 로직을 분리하면서 다양한 유저를 생성할 수 있도록 로직을 수정했습니다.
  • User Interface 를 User Class 로 수정했습니다.
  • Redis Client, Adapter 생성 로직도 분리했습니다.

📸 Screenshots

🔜 추가 내용 (선택)

user.factory.ts 에서 랜덤 User 인스턴스 생성하고, room.service 에 user factory 주입
실제로 유저 인스턴스는 userFactory 에서 생성하고 있기 때문에 메소드명이 오해를 불러올 수 있을 것 같아서 변경
@hoeeeeeh hoeeeeeh merged commit e332e41 into dev-be Jan 14, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant