Skip to content

Commit

Permalink
Merge pull request #56 from oven-2023/feature/chat
Browse files Browse the repository at this point in the history
fix: add socket heartbeat time
  • Loading branch information
haen-su authored Nov 7, 2023
2 parents c07d6dc + fbd12ed commit be616e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/oven/server/config/WebSocketConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/ws/endpoint")
.addInterceptors()
.setAllowedOriginPatterns("*")
.withSockJS();
.withSockJS()
.setHeartbeatTime(1000);
log.info("[WebSocket Endpoints]: 소켓 열림");
}

Expand Down

0 comments on commit be616e9

Please sign in to comment.