-
Notifications
You must be signed in to change notification settings - Fork 0
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
Pong: Socket 연결 및 게임 목록 기능 구현 #105
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
socket 연결 다 확인했으니까 ping pong 뺄까여 |
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.
const uuid = useLocation().pathname.split('/')[2]; | ||
const gameRoomList = useRecoilValue(gameRoomListState); | ||
|
||
const foundGameRoom = gameRoomList.find(gameRoom => gameRoom.id === uuid); |
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.
이거 uuid가 undefined 걸리면 어케 되나요
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.
사실 터질 일은 없을거같긴 함
joinChatRoomState, | ||
leaveChatRoomState, | ||
newChatRoomState, | ||
newGamePingMessageState, | ||
newMessageState, | ||
updateChatRoomState, | ||
joinGameRoomState, | ||
newGameRoomState, | ||
updateGameRoomState, | ||
leaveGameRoomState, | ||
} from 'store'; |
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.
와 이거 챗부분 이PR 머지되면 제가 나눠둘게요,,..
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.
넵넵
setNewGameRoom({ | ||
created: true, | ||
}); | ||
console.log('Click New Game Button\n'); |
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.
콘솔로그 다 지우고 올리기로 한 것이 아니었나묘???
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.
았!
<button type="button" onClick={handleClickButton} className={gameRoomIconStyle}> | ||
<PlusIcon /> | ||
</button> | ||
{isModalShown && ( | ||
<Modal onClickClose={handleClickClose} className={newGameModalWrapperStyle}> | ||
<header className={newGameModalHeaderStyle}> | ||
<h4>새 게임</h4> | ||
<h4>🐦 게임 만들기</h4> |
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.
아 킹받아!!!!
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.
아..
@Skyrich2000 @chichoon 올려주신 내용 수정해서 올렸습니다. |
console.log 발견 👀 |
useEffect(() => { | ||
return () => { | ||
setLeaveGameRoom({ id: currentGameRoom.id }); | ||
}; | ||
}, []); |
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.
👍
export const newGamePingMessageState = atom<string>({ | ||
key: 'newGamePingMessageState', | ||
default: '', | ||
}); |
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.
이거 이제 필요없지 않나염
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.
<div className={newGameFormStyle}> | ||
<div className={newGameInnerDivStyle}> | ||
<div className={formSectionDivStyle}> | ||
<label htmlFor="new-chat-name">이름따위설정할수없다</label> |
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.
ㅋㅋ 이거모임
exceptionHandler, | ||
disconnectHandler, | ||
}); | ||
sockets.gameSocket.on('join_room', joinGameRoomHandler); |
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.
여기에
sockets.gameScoket.on('update_game_room', getAllGameRoomHandler);
빠진듯?
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.
수정완료!
console.log 발견 👀 |
console.log 발견 👀 |
게임 소켓 연결 및 게임 목록 기능을 구현 했습니다.