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
Link copied to clipboard
Link copied to clipboard

Emits connectivity availability changes from the underlying observer.

Link copied to clipboard
val isSessionConnected: Observable<Boolean>
Link copied to clipboard
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 dispose()
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.