Module cdp

Module cdp 

Source
Expand description

Minimal Chrome DevTools Protocol (CDP) WebSocket client.

One session = one WebSocket to ws://127.0.0.1:<debug_port>/devtools/page/<target>. Per-request construction in Phase 1 (see PLAN §Phase 5 for pooling).

CDP protocol: every client request is {id, method, params}; every server reply with matching id is {id, result} or {id, error}. Events (no id) are ignored here — we don’t subscribe to any in Phase 1 since every method we use is request/response.

Structs§

CdpSession

Type Aliases§

CdpError