Ekimart078 commited on
Commit
203a546
·
1 Parent(s): fab266d

Update WebSocket URL port in `connect` function for consistency with server configuration.

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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:8000/ws/${userId}?roles=${roles}`;
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