Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
dc95bfe
1
Parent(s):
30c8a40
- static/index.html +1 -0
static/index.html
CHANGED
@@ -179,6 +179,7 @@
|
|
179 |
}
|
180 |
|
181 |
function connect() {
|
|
|
182 |
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
183 |
socket = new WebSocket(`${protocol}//${window.location.host}/ws`);
|
184 |
|
|
|
179 |
}
|
180 |
|
181 |
function connect() {
|
182 |
+
console.log("connect() function called - creating new WebSocket connection");
|
183 |
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
184 |
socket = new WebSocket(`${protocol}//${window.location.host}/ws`);
|
185 |
|