Skip to content

Commit

Permalink
[Bug] Fix ws to wss
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnsugyeong committed May 15, 2024
1 parent 94a93bb commit 368b9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/templates/chat/roomdetail.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ <h2>{{chatRoom.name}}</h2>
},
connect: function () {
console.log('Attempting to connect...');
this.ws = new WebSocket(`ws://${window.location.host}/ws/chat`);
this.ws = new WebSocket(`wss://${window.location.host}/ws/chat`);
this.ws.onopen = () => {
console.log('Connected');
this.joinChatRoom();
Expand Down

0 comments on commit 368b9b5

Please sign in to comment.