Skip to main content

socket_path_for_session

Function socket_path_for_session 

Source
pub fn socket_path_for_session(session_id: &str) -> String
Expand description

Returns the Unix domain socket path for a session. Sockets live in the registry dir (~/.synaps-cli/run/) which is user-owned and mode 0700, avoiding /tmp symlink squatting and TOCTOU races.