[Feature-socket-fix] 소켓이 잘못된 핸들러를 없애 이벤트 수신 및 반영이 안 되던 문제 해결 #242
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
작업 내용
소켓이 잘못된 핸들러를 없애 이벤트 수신 및 반영이 안 되던 문제 해결
이런 문제가 있었습니다.
handleSocketEvent에서off를 할 때 모든 리스너가 사라져 서버의 response를 상시로 listen해야 하는 리스너까지 함께 사라지기 때문에 발생하는 문제임을 파악했습니다. 해당 부분 수정하여 올립니다약간의 리팩토링
논의하고 싶은 내용