Skip to content

Commit

Permalink
feat: update WebSocketConfig.java for without sockJs
Browse files Browse the repository at this point in the history
  • Loading branch information
FacerAin authored Aug 6, 2024
1 parent 72ac0bf commit 63bc557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/dnd/timeet/config/WebSocketConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public void configureMessageBroker(MessageBrokerRegistry config) {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/ws")
.setAllowedOriginPatterns("*") // 모든 도메인에서 접근 허용
.withSockJS(); // /ws로 접속하면 SockJS를 통해 웹소켓 연결
.setAllowedOriginPatterns("*"); // 모든 도메인에서 접근 허용
// .withSockJS(); // /ws로 접속하면 SockJS를 통해 웹소켓 연결
}

@Override
Expand Down

0 comments on commit 63bc557

Please sign in to comment.