Skip to content

Conversation

@ShipFriend0516
Copy link
Member

Note

웹소켓 이벤트명 변경

✅ 체크리스트

  • 코드가 정상적으로 작동하는지 확인했습니다.
  • 주요 변경사항에 대한 설명을 작성했습니다.
  • 코드 스타일 가이드에 따라 코드를 작성했습니다.

🧩 작업 내용

  • 이벤트명 변경

📝 작업 상세 내역

이벤트명 변경

  • client: , server: 형식으로 변경된 이벤트명 사용
export const SESSION_EMIT_EVENT = {
  CREATE: "client:room__create",
  JOIN: "client:room__join",
  LEAVE: "client:room__leave",
  FINISH: "client:room__finish",
  REACTION: "client:room__reaction",
} as const;

export const SESSION_LISTEN_EVENT = {
  CREATE: "server:room__create",
  QUIT: "server:room__quit",
  FULL: "server:room__full",
  JOIN: "server:room__join",
  FINISH: "server:room__finish",
  CHANGE_HOST: "server:room__change_host",
  REACTION: "server:room__reaction",
} as const;

형식으로 분리, constants 폴더에 저장

🐥 리뷰 받고 싶은 포인트(선택)

  • SESSION_EMIT_EVENT는 클라이언트에서 보내는 emit 하는데 사용되는 이벤트 묶음
  • SESSION_LISTEN_EVENT는 수신하는데 사용되는 이벤트 묶음입니다.

blu3fishez and others added 19 commits November 25, 2024 20:53
- 분리하면서 아예 공식 모듈로 승격
- 스터디 세션, 시그널링 서버 핸들러보다 더 상위의 기초적인 서버 설정과 서버 인스턴스를 맡는 전역 게이트웨이
- 길어지는 로직을 아예 파일로 분리했음
- 현재로써는 로직의 수가 많지 않기에 가독성 측면에서 분리가 좋다고 판단했습니다.
- `backend/src/room/services/room-create.service.ts`

해당 파일에서 새롭게 `redisClient` 를 받아와서 새로운 roomId 값을 생성하도록 개선
- 이제 redis-stack을 사용
…erate-session-id

[Fix] 세션 생성 오류 수정, 도커 컴포즈 설정파일 업데이트, 그 외 오류 수정
[Deploy] 5주차 스프린트 배포 - 1
- 설정 파일이 존재하지않으므로 설정하지 않도록 변경
- .gitignore 에 맞게 컨테이너 폴더 이름 변경
…t-component-props

[Fix] Select 컴포넌트 Props 오류 해결
@ShipFriend0516 ShipFriend0516 added the 🎁 Refactoring 리팩토링 label Nov 26, 2024
@ShipFriend0516 ShipFriend0516 self-assigned this Nov 26, 2024
@ShipFriend0516 ShipFriend0516 merged commit 199b4e4 into boostcampwm-2024:dev Nov 26, 2024
@ShipFriend0516 ShipFriend0516 deleted the refactor/websocket-api branch December 5, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎁 Refactoring 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants