Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
Description
socket room-info 이벤트 및 room start로직 작업한 내용입니다
일단 시작 잘 되고 time over도 잘 되는데, time over후 제출 되어도 스코어보드에 반영하지 않도록 하는 로직이 추가적으로 필요해 보입니다.
Changes Made
client
client/src/components/Room/ProblemLists.tsx
client/src/components/Room/Problems.tsx
client/src/components/Room/RoomSettingModal/RoomSettingModal.tsx
client/src/components/Room/Timer.tsx
client/src/components/buttons/StartButton.tsx
client/src/contexts/RoomProvider.tsx
server
server/src/problem/problem.service.ts
server/src/socket/socket.gateway.ts
server/src/socket/socket.service.ts
두 함수를 구현하고 유저가 참가 / 퇴장할 때마다 room-info 이벤트를 emit합니다.
Extra Comments
Demo
2023-12-12.12.54.52.mov