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

Method on_message

playwright/_impl/_network.py:746–747  ·  view source on GitHub ↗
(self, handler: Callable[[Union[str, bytes]], Any])

Source from the content-addressed store, hash-verified

744 )
745
746 def on_message(self, handler: Callable[[Union[str, bytes]], Any]) -> None:
747 self._on_page_message = handler
748
749 def on_close(self, handler: Callable[[Optional[int], Optional[str]], Any]) -> None:
750 self._on_page_close = handler

Callers 8

handle_messageMethod · 0.45
runMethod · 0.45
_handle_wsFunction · 0.45
handle_wsFunction · 0.45
_handle_wsFunction · 0.45
handle_wsFunction · 0.45

Calls

no outgoing calls

Tested by 6

_handle_wsFunction · 0.36
handle_wsFunction · 0.36
_handle_wsFunction · 0.36
handle_wsFunction · 0.36