connectionStateFlow

abstract val connectionStateFlow: StateFlow<ConnectionState>

The current state of the underlying real-time connection, as a StateFlow. New collectors immediately receive the current state, then every subsequent transition.