Skip to main content

connect_or_spawn_server

Function connect_or_spawn_server 

Source
pub fn connect_or_spawn_server(bin: Option<&Path>) -> Result<String>
Expand description

Wait for the gateway to become reachable, spawning a detached daemon if none is running.

Returns the gateway channel name string, which the caller passes to the muxio IPC client. bin defaults to the current executable so tests can point it at CARGO_BIN_EXE_term-session.