Skip to content

Conversation

@punkryn
Copy link
Member

@punkryn punkryn commented Dec 5, 2022

PR 목적 / 요약

  • end interview 시 interviewee는 이벤트를 받지 못 하는 bug 수정
  • main branch pull
  • frontend start signal 처음 입장시만 발생하도록 변경

관련 이슈

@punkryn punkryn linked an issue Dec 5, 2022 that may be closed by this pull request
@punkryn punkryn closed this Dec 5, 2022
@bh2980 bh2980 reopened this Dec 5, 2022
@bh2980 bh2980 self-requested a review December 5, 2022 09:28
@bh2980 bh2980 added this to the Week 5 milestone Dec 5, 2022
@punkryn punkryn changed the title 115 로비 재진입 시 webrtc 시그널링 재시도 버그 로비 재진입 시 webrtc 시그널링 재시도 버그 Dec 5, 2022

const emitEvent = this.getEventAtEndInterviewByRole(user.role);
client.to(clientId).emit(emitEvent, { docsUUID });
server.to(clientId).emit(emitEvent, { docsUUID });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

client socket에서는 자기 자신의 소켓이 제외되어 broadcast를 해도 event가 오지 않는거였군요

useEffect(() => {
//TODO Lobby 첫 렌더링 시가 아니라 첫 입장 시만 하기
startConnection(me.uuid);
if (!webRTCUserList.has(me.uuid)) startConnection(me.uuid);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key뿐만 아니라 value까지 체크하면 stream이 끊겼을 때 signaling 과정을 다시 거쳐서 stream을 살릴 수도 있을 거 같네요

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

일단은 이렇게 진행하고 나중에 생각해보는걸로 합시다.

@bh2980
Copy link
Member

bh2980 commented Dec 5, 2022

다른 브랜치들을 merge 해서 PR이 복잡해졌네요. 다음부터는 신경써서 하면 좋을 것 같아요

@bh2980 bh2980 merged commit 7dfd455 into dev Dec 5, 2022
@seyoung8239 seyoung8239 deleted the 115-로비-재진입-시-webrtc-시그널링-재시도-버그 branch December 8, 2022 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

로비 재진입 시 webRTC 시그널링 재시도 버그

4 participants