moved websocket to port 6001 to avoid ERR_UNSAFE_PORT in Chrome
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user