Skip to content

Commit

Permalink
[main] 🔧 Config: 소켓 하트비트 4000ms로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
koomchang committed May 29, 2024
1 parent 3e0877d commit 158b099
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public void registerStompEndpoints(StompEndpointRegistry registry) {

@Override
public void configureMessageBroker(MessageBrokerRegistry registry) {
registry.enableSimpleBroker("/sub", "/queue", "/user");
registry.enableSimpleBroker("/sub", "/queue", "/user")
.setHeartbeatValue(new long[]{4000, 4000})
;
registry.setApplicationDestinationPrefixes("/pub");
}

Expand Down

0 comments on commit 158b099

Please sign in to comment.