Skip to content

Commit

Permalink
[chore] #155 client-server 간에 10초마다 ping 주고 받도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeesw committed Sep 28, 2024
1 parent a07d7b4 commit 2118fc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void registerStompEndpoints(final StompEndpointRegistry registry) {
public void configureMessageBroker(final MessageBrokerRegistry registry) {
registry.setApplicationDestinationPrefixes("/pub"); // 발행요청
registry.enableSimpleBroker("/sub")// 구독요청
.setHeartbeatValue(new long[]{0, 10000}) // 클라이언트로부터 10초마다 ping 받는것으로 소켓 연결 유지
.setHeartbeatValue(new long[]{10000, 10000}) // client-server 간에 10초마다 ping 주고 받는 것으로 소켓 연결 유지
.setTaskScheduler(taskScheduler()); // TaskScheduler 설정 추가
}

Expand Down

0 comments on commit 2118fc3

Please sign in to comment.