Spaces:
Sleeping
Sleeping
Commit ·
203a546
1
Parent(s): fab266d
Update WebSocket URL port in `connect` function for consistency with server configuration.
Browse files
main.py
CHANGED
|
@@ -131,7 +131,7 @@ async def get_test_page():
|
|
| 131 |
function connect() {
|
| 132 |
const userId = document.getElementById('userId').value;
|
| 133 |
const roles = document.getElementById('roles').value;
|
| 134 |
-
const url = `ws://localhost:
|
| 135 |
|
| 136 |
ws = new WebSocket(url);
|
| 137 |
|
|
|
|
| 131 |
function connect() {
|
| 132 |
const userId = document.getElementById('userId').value;
|
| 133 |
const roles = document.getElementById('roles').value;
|
| 134 |
+
const url = `ws://localhost:7860/ws/${userId}?roles=${roles}`;
|
| 135 |
|
| 136 |
ws = new WebSocket(url);
|
| 137 |
|