Skip to content

Commit

Permalink
fix: fixed websocket connection url
Browse files Browse the repository at this point in the history
  • Loading branch information
Troha7 committed Feb 26, 2024
1 parent 2f4328e commit 9278b2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<h1>WebSocket Chat Test Client</h1>

<p style="font-style: italic">
Connect to WebSocket [http://localhost:8080/chat?Authorization=Bearer {jwt_token}]
Connect to WebSocket [http://localhost/chat?Authorization=Bearer {jwt_token}]
</p>
<div>
<label for="jwtToken">
Expand Down Expand Up @@ -110,7 +110,7 @@ <h1>WebSocket Chat Test Client</h1>

function initializeWebSocket() {
const jwtToken = document.getElementById('jwtToken').value;
socket = new SockJS('http://localhost:8080/chat?Authorization=' + tokenType + ' ' + jwtToken);
socket = new SockJS('/chat?Authorization=' + tokenType + ' ' + jwtToken);
stompClient = Stomp.over(socket);

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

0 comments on commit 9278b2f

Please sign in to comment.