observeSessionClosed

Returns a Flow that emits when the active session is closed.

This flow emits SessionClosedEvent with details about why the session was closed. The flow will only emit events for the current activeSession.

Return

Flow of session closed events.

Throws

if no active session exists when the flow is collected.