SessionManagerRx

Reactive facade for managing session lifecycle and related services.

This class coordinates session connection/restore/suspend flows, publishes connectivity and chat status signals.

Properties

Link copied to clipboard

Emits true when the chat service is authenticated, false otherwise.

Link copied to clipboard

Emits availability of the conference service (QSS).

Link copied to clipboard

Emits connectivity availability changes from the underlying observer.

Link copied to clipboard
val isSessionConnected: Observable<Boolean>

Emits true while the session is connected, false otherwise.

Link copied to clipboard

Emits true when reconnection is not possible (e.g., wrong credentials).

Link copied to clipboard

Functions

Link copied to clipboard
fun connect(authentication: Authentication, context: Context): Completable

Connects the session using the provided authentication and context.

Link copied to clipboard
fun restore(context: Context): Completable

Restores a session when possible, waiting for connectivity and service readiness.

Link copied to clipboard
fun suspend(): Completable

Suspends the session and chat service if the current state allows it.