StreamSessionState

Wraps a stream session with Compose-observable connection state.

isConnected is refreshed after a successful connect and after close returns. Observe readyState for asynchronous state changes from the underlying session.

Constructors

Link copied to clipboard
constructor(session: StreamSession)

Properties

Link copied to clipboard
open override var isConnected: Boolean
Link copied to clipboard
open override val readyState: StateFlow<StreamSession.ReadyState>
Link copied to clipboard

The underlying session. Use this wrapper's controls to refresh its Compose state.

Link copied to clipboard
open override val stream: Stream

Functions

Link copied to clipboard
open suspend override fun close(): Result<Unit>
Link copied to clipboard
open suspend override fun connect(): Result<Unit>