Skip to content

Commit

Permalink
refactor: speaking_ended 이벤트 리스너 일단 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
zizonyoungjun committed Dec 1, 2024
1 parent 42d4ee8 commit e252a7a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/frontend/src/hooks/useSpeakingControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,5 @@ export const useSpeakingControl = (currentSpeaker: string | null, userId: string
if (!socket || currentSpeaker !== userId) return;
socket.emit('end_speaking');
};

useEffect(() => {
if (!socket) return;

socket.on('speaking_ended', () => {
console.log('발언 종료 처리됨');
});

return () => {
socket.off('speaking_ended');
};
}, [socket]);

return { endSpeakingEarly };
};

0 comments on commit e252a7a

Please sign in to comment.