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

Method close

playwright/_impl/_network.py:603–615  ·  view source on GitHub ↗
(self, code: int = None, reason: str = None)

Source from the content-addressed store, hash-verified

601 return list(self._ws._initializer.get("protocols", []))
602
603 def close(self, code: int = None, reason: str = None) -> None:
604 _create_task_and_ignore_exception(
605 self._ws._loop,
606 self._ws._channel.send(
607 "closeServer",
608 None,
609 {
610 "code": code,
611 "reason": reason,
612 "wasClean": True,
613 },
614 ),
615 )
616
617 def send(self, message: Union[str, bytes]) -> None:
618 if isinstance(message, str):

Callers

nothing calls this directly

Calls 2

sendMethod · 0.45

Tested by

no test coverage detected