1. 전반적인 세팅 관련
  2. Users 관련
  3. Auth 관련
  4. Rooms 관련
  5. Conversations 관련
  6. Events 관련

다른 module의 도움이 필요한 service가 생각나면 일단 여기 적고 서로 말하기

  1. AuthService에 token이 주어질 때, decod를 해서 JwtPayloadDto를 전달해주는 service
  async getUser(token: string) {
    const decoded = this.jwtService.verify<User>(token, { secret: jwtConstants.secret });
    if (!decoded) {
      throw new UnauthorizedException();
    }
    return decoded;
  }

위와 비슷하면 됩니다.

안 해주면 websocket에서 누가 보낸 socket인지 확인할 수 없습니다.

또한, AuthModule에서 AuthService를 export하게 수정해주세요.

  1. UserService에서 JwtPayloadDto가 주어질 때, User 객체를 find 해주는 service

DB에서 잘 찾아주신 다음 User 객체를 찾아주시면 됩니다.

  1. Room 객체가 주어질 때, Conversation을 생성하는 service

conversationData도 추가로 같이 생성해주시면 됩니다. 그래도 좀 후순위입니다.