INNER CODE UNIT · Python
TracingDispatcher
feder-cr/invisible_playwright · src/invisible_playwright/_juggler/server.py:128
class TracingDispatcher(RefusingDispatcher):
TYPE = "Tracing"
REASON = ("tracing is outside the automation core; it records a session "
"for the trace viewer and drives none of it")
METHODS = {"tracingStop": "stop_noop", "tracingStopChunk": "stop_noop"}
def stop_noop(self, params: Dict) -> Any:
# ⛔ These two answer instead of refusing because `close()` calls them
# on the way out: refusing here would turn every clean shutdown into an
# error about a feature the caller never asked for.
return {"artifact": None}
class DebuggerDispatcher(RefusingDispatcher):
TYPE = "Debugger"
REASON = "the inspector and its paused state are not part of this fork"