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

fix: 게임 초대하기 취소, 수락 및 거절 로직 #74

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

tomatozil
Copy link
Contributor

@tomatozil tomatozil commented Dec 13, 2023

  • 게임 초대를 취소하는 api

  • 게임 초대를 수락하는 api

    • 게임을 생성하고 초대 보낸 사람과 받은 사람 모두에게 gameInvitationReply 이벤트를 보냅니다
  • 게임 초대를 거절하는 api

    • 초대 보낸 사람에게 gameInvitationReply 이벤트를 보냅니다
  • inviteGame 등 ChannelsGateway의 서버 소켓이 필요한 메서드들의 경우,
    GameGateway에서 ChannelsGateway를 주입 받아 ChannelsGateway의 server에 접근합니다.

(+)

  • 게임 초대시 받는 사람이 보낸 사람을 block한 상태라면,
    보낸 사람은 보내진 것으로 처리되고(201 created response) 받는 사람은 'gameInvitation' 이벤트를 받지 않습니다.

Copy link
Contributor

@cjho0316 cjho0316 left a comment

Choose a reason for hiding this comment

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

고생하셨읍니다,, 채널로직도 비슷하게 가져가겠습니다~~

@cjho0316 cjho0316 merged commit 679a33c into main Dec 14, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants