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

Method on

playwright/sync_api/_generated.py:1042–1046  ·  view source on GitHub ↗

Fired when the websocket closes.

(
        self, event: Literal["close"], f: typing.Callable[["WebSocket"], "None"]
    )

Source from the content-addressed store, hash-verified

1040
1041 @typing.overload
1042 def on(
1043 self, event: Literal["close"], f: typing.Callable[["WebSocket"], "None"]
1044 ) -> None:
1045 """
1046 Fired when the websocket closes."""
1047
1048 @typing.overload
1049 def on(

Callers

nothing calls this directly

Calls 1

onMethod · 0.45

Tested by

no test coverage detected