moved websocket to port 6001 to avoid ERR_UNSAFE_PORT in Chrome

This commit is contained in:
2025-05-21 22:07:50 +09:30
parent f03df6fa1d
commit 6b0d0f6960
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import requests
import socketio
# API endpoint
API_URL = "http://localhost:6000/api/connected_clients"
API_URL = "http://localhost:6001/api/connected_clients"
def load_clients():
response = requests.get(API_URL)
@@ -14,7 +14,7 @@ def load_clients():
def render():
# Initialize SocketIO client
sio = socketio.Client()
sio.connect("http://localhost:6000")
sio.connect("http://localhost:6001")
st.title("Connected Clients")
clients = load_clients()