Skip to main content

read_devtools_active_port

Function read_devtools_active_port 

Source
pub fn read_devtools_active_port() -> Result<(u16, String), ChromeError>
Expand description

Read the DevToolsActivePort file from the default user data directory.

Returns (port, ws_path) on success.

ยงErrors

Returns ChromeError::NoActivePort if the file is missing or unreadable, or ChromeError::ParseError if the contents are malformed.