Skip to main content

connect_or_spawn_server

Function connect_or_spawn_server 

Source
pub fn connect_or_spawn_server(
    channel: &ChannelName,
    cfg: &ServerSpawnConfig<'_>,
) -> Result<String>
Expand description

Wait for a session server to become reachable on the channel, spawning one via current_exe() --server if none is running.

Returns the channel name string, which the caller passes to the muxio IPC client. The client and server both route it through GenericNamespaced, so no filesystem path is involved.