Skip to content
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

disconncting event 발생 시 서버와 클라이언트 변경 #294

Open
4 of 5 tasks
JeongHyeonJo opened this issue Nov 28, 2019 · 0 comments
Open
4 of 5 tasks

disconncting event 발생 시 서버와 클라이언트 변경 #294

JeongHyeonJo opened this issue Nov 28, 2019 · 0 comments
Assignees
Labels
be Back-end related fe Front-end related socket webrtc WebRTC related
Milestone

Comments

@JeongHyeonJo
Copy link
Collaborator

JeongHyeonJo commented Nov 28, 2019

서버

  • 소켓을 플레이어에서 지운다.
  • 스트리머 목록에서 플레이어를 지운다.
  • 게임을 진행할 수 없으면 게임을 종료한다.

클라이언트

  • 게임이 종료되면 자동으로
    카메라를 보이지 않도록 변경한다. -> 카메라가 화면에는 보이지 않지만 브라우저단에서의 카메라가 꺼지지 않음
  • 삭제된 플레이어를 remote players에서 지운다.
@JeongHyeonJo JeongHyeonJo added be Back-end related fe Front-end related socket webrtc WebRTC related labels Nov 28, 2019
@JeongHyeonJo JeongHyeonJo added this to the Sprint 04 milestone Nov 28, 2019
younguna added a commit that referenced this issue Nov 28, 2019
상세:
- 서버에서 소켓의 disconnecting 이벤트가 발생할 경우 sendLeftPlayer 이벤트 룸전체로 발생
- 만약 disconnecting 이벤트 발생자가 스트리머일 경우 set를 끝내고 시작
- 클라이언트에서 sendLeftPlayer 이벤트를 수신할 경우 해당 플레이어를 webRTC에서 closeConnection
- remotePlayers에서 삭제
- view로 전달할 viewPlayerList를 생성

#294
JeongHyeonJo added a commit that referenced this issue Nov 28, 2019
상세 : 룸의 streamers에 해당 멤버가 있는지 확인 후, 있을 경우
해당 멤버 삭제

#294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
be Back-end related fe Front-end related socket webrtc WebRTC related
Projects
None yet
Development

No branches or pull requests

2 participants