Skip to content

Commit

Permalink
[💡comment] : 주석 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
yejinleee committed Apr 10, 2024
1 parent 1bd5293 commit 8ba99b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
22 changes: 2 additions & 20 deletions src/pages/GamePage/GamePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@ const GamePage = () => {
const navigate = useNavigate();

const { roomId, setRoomInfo, roomInfo } = useRoomInfoStore();
const {
publishGameRoom,
// onIngameConnected,
// publishIngame,
// handleConnectIngame,
stompClient,
ingameSubscription,
} = useWebsocket(roomId);
const { publishGameRoom, stompClient, ingameSubscription } =
useWebsocket(roomId);

const { gameRoomRes, isRoomWsError, didAdminStart, allMembers } =
useGameWaitingRoomStore();
Expand Down Expand Up @@ -120,15 +114,3 @@ const GamePage = () => {
);
};
export default GamePage;

/*
useWebsocket 분리..
처음 GamePage 들어오면 useWebsocket 연결하면서 게임대기룸 웹소켓 연결함
인게임 시작되면 인게임 웹소켓도 연결해야함. 교체아님 쌓여야함
인게임 종료되면 인게임 웹소켓 끊어야함!!! <- 쌓이지 않게
인게임 웹소켓을 분리하고 싶다..
구상1
usWebsocekt에서 ingameSubscription를 반환한다.
이걸로 인게임 unsubscribe 해야해서 ..
*/
3 changes: 0 additions & 3 deletions src/pages/GamePage/IngameWebsocketLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import useIngameWebsocket from './hooks/useIngameWebsocket';

interface IngameWebsocketLayerProps {
userId: number;
// publishIngame: PublishIngameType;
// onIngameConnected: () => void;
// handleConnectIngame: (roomId: number) => void;
stompClient: MutableRefObject<Client | undefined>;
ingameSubscription: MutableRefObject<StompSubscription | undefined>;
}
Expand Down

0 comments on commit 8ba99b6

Please sign in to comment.