Types

Link copied to clipboard

True when the peer connections are ready

Link copied to clipboard
Link copied to clipboard
data class Failed(val error: Any) : RealtimeConnection
Link copied to clipboard

Join is in progress

Link copied to clipboard
data class Joined(val session: RtcSession) : RealtimeConnection

We set the state to Joined as soon as the call state is available

Link copied to clipboard
Link copied to clipboard

We start out in the PreJoin state. This is before call.join is called

Link copied to clipboard

Reconnecting is true whenever Rtc isn't available and trying to recover If the subscriber peer connection breaks we'll reconnect If the publisher peer connection breaks we'll reconnect Also if the network provider from the OS says that internet is down we'll set it to reconnecting