Skip to main content

frame_session_id

Function frame_session_id 

Source
fn frame_session_id(
    msg_session_id: Option<&str>,
    live_session_id: &str,
    spawn_session_id: &str,
) -> String
Expand description

Resolve the session id to stamp on an inbound SDK frame. Frames that carry their own id use it verbatim; session-id-less frames (Error, RateLimitEvent) inherit the client’s LIVE id, falling back to the spawn-time id only while the live one is still empty (before system/init binds the real UUID). Without the live preference a mid-session fatal Error on a fresh session gets stamped “” and a view drops it as an unknown session.