From 2118fc3a6084804cd9708957773b0494973484d3 Mon Sep 17 00:00:00 2001 From: hyeesw Date: Sat, 28 Sep 2024 17:35:33 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20#155=20client-server=20=EA=B0=84?= =?UTF-8?q?=EC=97=90=2010=EC=B4=88=EB=A7=88=EB=8B=A4=20ping=20=EC=A3=BC?= =?UTF-8?q?=EA=B3=A0=20=EB=B0=9B=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/book/backend/global/stomp/WebSocketConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/book/backend/global/stomp/WebSocketConfig.java b/src/main/java/com/book/backend/global/stomp/WebSocketConfig.java index 2352569..30087fc 100644 --- a/src/main/java/com/book/backend/global/stomp/WebSocketConfig.java +++ b/src/main/java/com/book/backend/global/stomp/WebSocketConfig.java @@ -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 설정 추가 }