Skip to content

Commit b6f1ba9

Browse files
juyeong-swcho21
andauthored
Feat/#104-S : 회의록 소켓 서버 구축 (#105)
## 🤠 개요 - resolve #104 ## 💫 설명 - 회의록 전용 소켓 서버 구축 - 회의록 불러오기 이벤트 - 회의록 추가 이벤트 - 현재 Mom 스키마에 id 필드가 있는데, id 필드를 auto increment 로 설정하면 좋을텐데 mongo에서는 auto increment 를 지원하지 않는다고 해요. 그래서 디폴트로 제공되는 _id 필드로 판단하는거 어떨까요? - 그래서 스키마에 id 필드를 없애봤어요 ## 🌜 고민거리 (Optional) ### Q. 소켓 서버 파일 위치요.. `/api/workspace/` 아래에 `socket.ts` 라는 파일로 두었는데 더 좋은 곳이 있을까요? ### Q. 네이밍 고민이요.. 현재는 workspaceSocketServer 로 되어있는데, namespace만 workspace Id에 따라 할당해주고 소켓이벤트들에는 회의록 조회, 추가 이벤트들이 묶여있어서 mom 소켓 서버가 맞는건지 잘 모르겠어요.. momSocketServer 로 하면 현재 workspace 디렉토리 아래에 소켓 서버가 있는데, mom으로 옮겨야 되나 싶어요 mom/service의 getMom, addMom 을 소켓에서 사용하고 있어서 mom에 있는게 맞는거 같기도 하네요 아니면 소켓 서버 디렉토리를 따로 만들까요? + Postman으로 소켓 테스트하는거 재밌어요 http 랑 뭔가 색다른 느낌이에요 ## 📷 스크린샷 (Optional) - _id 기준으로 불러왔어요 ![스크린샷 2022-11-22 오후 4 47 28](https://user-images.githubusercontent.com/63364990/203255503-0c25c57e-566a-4533-ac49-91bf8a151fa2.png) - 회의록 2개를 생성해봤어요 - 1은 임의로 막 보낸 값이에요 ![스크린샷 2022-11-22 오후 4 38 34](https://user-images.githubusercontent.com/63364990/203253683-8ed0fe96-1d66-4af5-a688-b89156234a49.png) Co-authored-by: Won-hee Cho <[email protected]>
1 parent 9d817c3 commit b6f1ba9

File tree

8 files changed

+293
-20
lines changed

8 files changed

+293
-20
lines changed

client/src/components/Sidebar/SettingIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function SettingIcon() {
1515

1616
return (
1717
<>
18-
<MdSettings size={15} onClick={onOpen} />
18+
<MdSettings size={15} onClick={onOpen} style={{ cursor: 'pointer' }} />
1919
{isOpen && (
2020
<WorkspaceSettingModal title="워크스페이스 설정" onClose={onClose} />
2121
)}

client/src/components/Sidebar/style.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979

8080
& > li {
8181
margin-top: 15px;
82+
cursor: pointer;
8283
}
8384

8485
& > li:first-child {

0 commit comments

Comments
 (0)