Skip to main content

read_session_endpoints

Function read_session_endpoints 

Source
pub fn read_session_endpoints(session_home: &Path) -> Vec<Endpoint>
Expand description

Read a session’s relay-state.json and return its self.endpoints[] array (v0.5.17 dual-slot). Empty Vec on any read/parse error — this is a best-effort discovery helper, not a verification tool. A pre- v0.5.17 session writes only the legacy flat fields; self_endpoints promotes those to a federation-only Endpoint, so the result is still meaningful for legacy sessions.