Update fun.py
Browse files
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}"
|