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

Method connect_to_server

playwright/_impl/_network.py:713–723  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

711 pass
712
713 def connect_to_server(self) -> "WebSocketRoute":
714 if self._connected:
715 raise Error("Already connected to the server")
716 self._connected = True
717 asyncio.create_task(
718 self._channel.send(
719 "connect",
720 None,
721 )
722 )
723 return cast("WebSocketRoute", self._server)
724
725 def send(self, message: Union[str, bytes]) -> None:
726 if isinstance(message, str):

Callers 5

_on_web_socket_routeMethod · 0.45
_handle_wsFunction · 0.45
_handle_wsFunction · 0.45

Calls 2

ErrorClass · 0.90
sendMethod · 0.45

Tested by 4

_handle_wsFunction · 0.36
_handle_wsFunction · 0.36