BG5 commited on
Commit
c5e3a60
·
verified ·
1 Parent(s): 81c8810

Update fun.py

Browse files
Files changed (1) hide show
  1. fun.py +6 -6
fun.py CHANGED
@@ -42,12 +42,12 @@ async def websocket_proxy(websocket: WebSocket, path: str):
42
 
43
  try:
44
  async with websockets.connect(target_url) as target_ws:
45
- # 1. 先发送初始化命令(必需)
46
- await target_ws.send(json.dumps({
47
- "id": 1,
48
- "method": "Runtime.enable"
49
- }))
50
- logger.info("Sent Runtime.enable")
51
 
52
  # 2. 启动转发任务
53
  async def forward_client_to_server():
 
42
 
43
  try:
44
  async with websockets.connect(target_url) as target_ws:
45
+ # # 1. 先发送初始化命令(必需)
46
+ # await target_ws.send(json.dumps({
47
+ # "id": 1,
48
+ # "method": "Runtime.enable"
49
+ # }))
50
+ # logger.info("Sent Runtime.enable")
51
 
52
  # 2. 启动转发任务
53
  async def forward_client_to_server():