Skip to content

Commit

Permalink
[Fix] Change ws to wss
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnsugyeong committed Sep 23, 2024
1 parent a158e08 commit 66e25fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/templates/chat/roomdetail.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
<div class="container" id="app" v-cloak>
<div>
<h2>{{chatRoom.name}}</h2>
<h2>{{ chatRoom.name }}</h2>
</div>
<div class="input-group">
<div class="input-group-prepend">
Expand All @@ -36,7 +36,7 @@ <h2>{{chatRoom.name}}</h2>
</div>
<ul class="list-group">
<li class="list-group-item" v-for="message in messages">
{{message.senderNickname}}: {{message.content}}
{{ message.senderNickname }}: {{ message.content }}
</li>
</ul>
<div></div>
Expand Down Expand Up @@ -154,7 +154,7 @@ <h2>{{chatRoom.name}}</h2>
},
connect: function () {
console.log('Attempting to connect...');
this.ws = Stomp.over(new WebSocket("ws://" + window.location.host + "/ws/chat"));
this.ws = Stomp.over(new WebSocket("wss://" + window.location.host + "/ws/chat"));
this.ws.connect({
'Authorization': 'Bearer ' + this.accessToken
}, (frame) => {
Expand Down

0 comments on commit 66e25fd

Please sign in to comment.