Skip to main content

Module browser_wire

Module browser_wire 

Source
Expand description

Opaque browser-stream wire (dig2-compatible).

Carried inside the restream G4aControl sidecar as {"browser": ...} JSON, or as raw input bytes inside that JSON. C2 never parses these bytes.

Structs§

BrowserFrameRegion
Changed rectangle of a delta frame, in source-image pixels.
BrowserFrameTrace
Node-side timings (milliseconds) for the frame that first reflects an input.
BrowserOpReply
Reply to a BrowserClientOp (correlated by op_id on the control channel).

Enums§

BrowserClientOp
HQ → node browser control (over the restream control channel).
BrowserInput
BrowserMouseButton
BrowserStreamEvent
Node → HQ browser events (frames and lifecycle).

Functions§

decode_input
encode_click
encode_key
encode_navigate
encode_scroll
encode_text
validate_session_id