Skip to content

Commit

Permalink
Merge pull request #57 from oven-2023/feature/chat
Browse files Browse the repository at this point in the history
fix: edit WebSocketConfig
  • Loading branch information
haen-su authored Nov 7, 2023
2 parents be616e9 + f3509df commit 99aac87
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/com/oven/server/config/WebSocketConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ public void configureMessageBroker(MessageBrokerRegistry config) {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/ws/endpoint")
.addInterceptors()
.setAllowedOriginPatterns("*")
.withSockJS()
.setHeartbeatTime(1000);
.setAllowedOriginPatterns("*");
log.info("[WebSocket Endpoints]: 소켓 열림");
}

Expand Down

0 comments on commit 99aac87

Please sign in to comment.