BG5 commited on
Commit
63d6021
·
verified ·
1 Parent(s): 5af27ed

Update fun.py

Browse files
Files changed (1) hide show
  1. fun.py +1 -1
fun.py CHANGED
@@ -33,7 +33,7 @@ async def proxy(request: Request, path: str):
33
  status_code=resp.status_code,
34
  headers=dict(resp.headers)
35
  )
36
-
37
  async def websocket_proxy(websocket: WebSocket, path: str):
38
  await websocket.accept()
39
  target_url = f"{TARGET_WS_BASE}/{path}"
 
33
  status_code=resp.status_code,
34
  headers=dict(resp.headers)
35
  )
36
+ @app.websocket("/devtools/page/{page_id}")
37
  async def websocket_proxy(websocket: WebSocket, path: str):
38
  await websocket.accept()
39
  target_url = f"{TARGET_WS_BASE}/{path}"