Spaces:
Sleeping
Sleeping
Update static/index.html
Browse files- static/index.html +1 -1
static/index.html
CHANGED
@@ -384,7 +384,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
384 |
function connectWebSocket() {
|
385 |
|
386 |
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
387 |
-
ws = new WebSocket(`${protocol}//${window.location.host}/ws
|
388 |
|
389 |
ws.onopen = () => {
|
390 |
addMessage('Connected to the server.', 'system');
|
|
|
384 |
function connectWebSocket() {
|
385 |
|
386 |
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
387 |
+
ws = new WebSocket(`${protocol}//${window.location.host}/ws`);
|
388 |
|
389 |
ws.onopen = () => {
|
390 |
addMessage('Connected to the server.', 'system');
|