Skip to content

Commit

Permalink
refactor: 웹소켓 연결 엔드포인트 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kimday0326 committed Feb 20, 2024
1 parent 10b951c commit 5f5a265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {

@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/ws/room")
registry.addEndpoint("/ws")
.setAllowedOriginPatterns("*")
.withSockJS();
}
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h2>Game Room WebSocket Test</h2>
'Authorization': 'Bearer ' + accessToken,
'RoomId': roomId,
};
var socket = new SockJS('/ws/room'); // Adjust WebSocket connection URL
var socket = new SockJS('/ws'); // Adjust WebSocket connection URL
stompClient = Stomp.over(socket);

stompClient.connect(connectHeaders, function (frame) {
Expand Down

0 comments on commit 5f5a265

Please sign in to comment.