Module protocol

Module protocol 

Source
Expand description

WebSocket protocol message types.

Internal module defining command/response/event structures. WebSocket protocol message types.

This module defines the message format for communication between local end (Rust) and remote end (Extension).

§Protocol Overview

From ARCHITECTURE.md Section 2:

Message TypeDirectionPurpose
RequestLocal → RemoteCommand request
ResponseRemote → LocalCommand response
EventRemote → LocalBrowser notification
EventReplyLocal → RemoteEvent decision

§Command Naming

Commands follow module.methodName format:

  • browsingContext.navigate
  • element.find
  • network.addIntercept

§Modules

ModuleDescription
commandCommand definitions by domain
eventEvent and EventReply types
requestRequest and Response types

Re-exports§

pub use command::BrowsingContextCommand;
pub use command::Command;
pub use command::Cookie;
pub use command::ElementCommand;
pub use command::InputCommand;
pub use command::NetworkCommand;
pub use command::ProxyCommand;
pub use command::ScriptCommand;
pub use command::SessionCommand;
pub use command::StorageCommand;
pub use event::Event;
pub use event::EventReply;
pub use event::ParsedEvent;
pub use request::Request;
pub use request::Response;
pub use request::ResponseType;

Modules§

command
Command definitions organized by module. Command definitions organized by module.
event
Event message types. Event message types.
request
Request and Response message types. Request and Response message types.