klentyboopathi commited on
Commit
35a55c1
·
1 Parent(s): 05340a0
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -66,7 +66,7 @@ async def bot_connect(request: Request) -> Dict[Any, Any]:
66
  # return {"ws_url": "ws://localhost:7860/ws"}
67
  # Get the host from the request headers for dynamic URL generation
68
  host = request.headers.get("host", "localhost:7860")
69
- protocol = "wss" if request.url.scheme == "https" else "ws"
70
  return {"ws_url": f"{protocol}://{host}/ws"}
71
 
72
 
 
66
  # return {"ws_url": "ws://localhost:7860/ws"}
67
  # Get the host from the request headers for dynamic URL generation
68
  host = request.headers.get("host", "localhost:7860")
69
+ protocol = "wss" if request.url.scheme == "https" else "wss"
70
  return {"ws_url": f"{protocol}://{host}/ws"}
71
 
72