Skip to main content

post_to_host_awake

Function post_to_host_awake 

Source
pub(crate) async fn post_to_host_awake(
    state: &AppState,
    host: &HostIpc,
    route: &str,
    body: Value,
    timeout: Option<Duration>,
) -> Result<Value, String>
Expand description

Every srv call into the host’s browser API goes through here: a hibernated browser pane named by the body’s block_id has no page, so it is woken first, and the answer says so.