Skip to content

Commit

Permalink
[feat] #155 taskcheduler 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeesw committed Sep 23, 2024
1 parent 8d7039a commit d365459
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ 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[]{0, 10000}) // 클라이언트로부터 10초마다 ping 받는것으로 소켓 연결 유지
.setTaskScheduler(taskScheduler()); // TaskScheduler 설정 추가
}

// heartbeat 처리를 위한 스케줄러
Expand Down

0 comments on commit d365459

Please sign in to comment.