Skip to main content

Module protocol

Module protocol 

Source
Expand description

What the pane in the web UI says to srv, and how each message becomes a CDP call. docs/specs/SPEC_STREAMED_BROWSER_PANE_DEMO_2026_11_15.md §4.

Everything here is pure: a message that is too long, malformed or out of range is refused with words, never a panic, and a navigation to anything but http or https is refused.

Enums§

Button
ClientMsg
A message from the pane.
Go
KeyKind
MouseKind
WindowOp

Constants§

MAX_MESSAGE_BYTES
The longest text message the pane may send.
MAX_PASTE_BYTES
The longest paste (it arrives as a message of its own size class).
MAX_SIDE
MIN_SIDE
The smallest and largest side of the pane’s viewport.

Functions§

button_name 🔒
check 🔒
check_url
The address a pane may be sent to: http or https with a host, and nothing else (no file:, chrome:, devtools:, view-source:, javascript: or data:). about:blank is how a pane starts.
finite 🔒
input_call
The CDP call for an input message: its method and parameters, or none for a message that is not input.
parse
Parse one text message, with the size limits applied before any parsing.