Spaces:
Sleeping
Sleeping
Update static/index.html
Browse files- static/index.html +1 -1
static/index.html
CHANGED
|
@@ -402,7 +402,7 @@
|
|
| 402 |
|
| 403 |
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
| 404 |
<script>
|
| 405 |
-
const ws = new WebSocket(`
|
| 406 |
const messagesContainer = document.getElementById('messagesContainer');
|
| 407 |
const userInput = document.getElementById('userInput');
|
| 408 |
const sendBtn = document.getElementById('sendBtn');
|
|
|
|
| 402 |
|
| 403 |
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
| 404 |
<script>
|
| 405 |
+
const ws = new WebSocket(`wss://${window.location.host}/ws/chat`);
|
| 406 |
const messagesContainer = document.getElementById('messagesContainer');
|
| 407 |
const userInput = document.getElementById('userInput');
|
| 408 |
const sendBtn = document.getElementById('sendBtn');
|