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

Function _server_on_message

tests/async/test_route_web_socket.py:167–173  ·  view source on GitHub ↗
(message: Union[str, bytes])

Source from the content-addressed store, hash-verified

165 ws.on_message(_ws_on_message)
166
167 def _server_on_message(message: Union[str, bytes]) -> None:
168 if message == "to-block":
169 return
170 if message == "to-modify":
171 ws.send("modified")
172 return
173 ws.send(message)
174
175 server.on_message(_server_on_message)
176 server.send("fake")

Callers

nothing calls this directly

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected