-
Notifications
You must be signed in to change notification settings - Fork 3
로비 재진입 시 webrtc 시그널링 재시도 버그 #117
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
The head ref may contain hidden characters: "115-\uB85C\uBE44-\uC7AC\uC9C4\uC785-\uC2DC-webrtc-\uC2DC\uADF8\uB110\uB9C1-\uC7AC\uC2DC\uB3C4-\uBC84\uADF8"
Changes from all commits
9e9f6d7
7bbdb4a
a69c043
73aa882
ceca9f4
6bce27a
9b95a15
cea9abf
d287504
e3b7b97
02b4a5a
1c80430
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| FROM node:16.18.1 | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY yarn.lock package.json ./ | ||
| RUN yarn install | ||
|
|
||
| COPY . . | ||
| RUN yarn build | ||
|
|
||
| CMD yarn start |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,6 @@ const Lobby = () => { | |
| const streamList = useRecoilValue(webRTCStreamSelector); | ||
|
|
||
| useEffect(() => { | ||
| //TODO 변경된 부분 BE랑 맞추기 | ||
| socket.on(SOCKET_EVENT_TYPE.JOIN_INTERVIEW, ({ user: interviewee }) => { | ||
| const newOthers = others.map((user) => { | ||
| return user.uuid === interviewee.uuid | ||
|
|
@@ -61,12 +60,10 @@ const Lobby = () => { | |
| }, [others]); | ||
|
|
||
| useEffect(() => { | ||
| //TODO Lobby 첫 렌더링 시가 아니라 첫 입장 시만 하기 | ||
| startConnection(me.uuid); | ||
| if (!webRTCUserList.has(me.uuid)) startConnection(me.uuid); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. key뿐만 아니라 value까지 체크하면 stream이 끊겼을 때 signaling 과정을 다시 거쳐서 stream을 살릴 수도 있을 거 같네요 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 일단은 이렇게 진행하고 나중에 생각해보는걸로 합시다. |
||
| }, []); | ||
|
|
||
| const handleStartInterviewee = async () => { | ||
| //TODO 변경된 부분 BE랑 맞추기 | ||
| await socketEmit<joinInterviewResponseType>(SOCKET_EVENT_TYPE.START_INTERVIEW); | ||
|
|
||
| const newOthers = others.map((user) => { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
client socket에서는 자기 자신의 소켓이 제외되어 broadcast를 해도 event가 오지 않는거였군요