Skip to content

Commit

Permalink
hotfix: 채팅 web socket broker 등록
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeBin2019 committed Nov 14, 2024
1 parent a8fdb4a commit 73b236d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public void registerStompEndpoints(StompEndpointRegistry registry) {
.addInterceptors(new JwtHandshakeInterceptor(jwtUtil))
.setHandshakeHandler(new WebSocketHandShakeHandler())
.withSockJS();

registry.addEndpoint("/ws/chat/{roomId}")
.setAllowedOrigins("http://localhost:8080", "http://localhost:5173", "http://54.252.224.76:80")
.addInterceptors(new JwtHandshakeInterceptor(jwtUtil))
.setHandshakeHandler(new WebSocketHandShakeHandler())
.withSockJS();
}

}

0 comments on commit 73b236d

Please sign in to comment.