-
[Spring] 채팅 구현 중 웹소켓 중복 구독, 연결 끊김 문제 해결 (2)Code 2024. 11. 3. 18:23
↓ 여기서 이어집니다 Spring, Web Socket, STOMP, MongoDB 환경에서 채팅 구현웹소켓 관련 의존성 추가(build.gradle) implementation 'org.webjars:webjars-locator-core:0.59' implementation 'org.webjars:sockjs-client:1.5.1' implementation 'org.webjars:stomp-websocket:2.3.4' Websocket + STOMP config 구성@Configuration@Enablehenhen.tistory.com 문제frontend채팅 서비스 구현 중 웹소켓을 중복 구독해서 메세지가 이중으로 표시되는 문제페이지 새로고침이나 컴포넌트 이동 시 연결이 끊기는 문제구독 확인 후 ..