Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Oct 18, 2024
1 parent a5526e8 commit 7c963ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playwright/_impl/_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,11 @@ def url(self) -> str:
def close(self, code: int = None, reason: str = None) -> None:
_create_task_and_ignore_exception(
self._ws._channel.send(
"close",
"closeServer",
{
"code": code,
"reason": reason,
"wasClean": True,
},
)
)
Expand All @@ -600,6 +601,7 @@ def __init__(
self, parent: ChannelOwner, type: str, guid: str, initializer: Dict
) -> None:
super().__init__(parent, type, guid, initializer)
self.mark_as_internal_type()
self._on_page_message: Optional[Callable[[Union[str, bytes]], Any]] = None
self._on_page_close: Optional[
Callable[[Optional[int], Optional[str]], Any]
Expand Down

0 comments on commit 7c963ed

Please sign in to comment.