-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: socket.once을 최대한 사용하도록 리팩토링, 삼항연산자 사용
- socket.on후 socket.off로 이벤트의 리스너를 지우는 방식을 socket.once로 이벤트 발생시 바로 한번만 호출되고 리스너가 없어지도록 변경 - 삼항연산자를 사용해 더 짧고 가독성있게 변경
- Loading branch information
1 parent
eafa485
commit 10d2140
Showing
3 changed files
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters