MCPcopy Index your code
hub / github.com/microsoft/playwright-python / _handle_ws

Function _handle_ws

tests/async/test_route_web_socket.py:75–77  ·  view source on GitHub ↗
(ws: WebSocketRoute)

Source from the content-addressed store, hash-verified

73 future: asyncio.Future[WebSocketRoute] = asyncio.Future()
74
75 def _handle_ws(ws: WebSocketRoute) -> None:
76 ws.connect_to_server()
77 future.set_result(ws)
78
79 await page.route_web_socket(re.compile(".*"), _handle_ws)
80

Callers

nothing calls this directly

Calls 3

connect_to_serverMethod · 0.45
on_messageMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected