pub async fn launch_session(
    session_url: &str,
    realm: &RealmProxy
) -> Result<Channel, StartupError>
Expand description

Launches the specified session.

Any existing session child will be destroyed prior to launching the new session.

Returns a channel to the session component’s exposed_dir directory, or an error.

Parameters

  • session_url: The URL of the session to launch.
  • realm: The realm in which to launch the session.

Errors

If there was a problem creating or binding to the session component instance.