ov.capture.probes.websocket#

WebSocket probe: frames sent/received and open/close, first-class (D1).

Uses page.on("websocket") -> framesent/framereceived/close (a high-level Playwright API, not CDP). Frame payloads are truncated to a sane cap to keep the store bounded; realtime shape synthesis happens later in arch analysis, not here.

Classes

WebSocketProbe()

Capture WS lifecycle + frames via page.on('websocket').

class ov.capture.probes.websocket.WebSocketProbe[source]#

Bases: Probe

Capture WS lifecycle + frames via page.on('websocket').

attach(ctx)[source]#

Subscribe listeners before navigation. Default: no-op.

Return type:

None

finalize(ctx)[source]#

Flush accumulated state into artifacts at run end. Default: nothing.

Return type:

list[Artifact]