-
-
Field Summary
Fields Modifier and Type Field Description private final Roomroomprivate final ConnectionStateconnectionStateprivate final BooleanisConnectedprivate final BooleanisReconnecting
-
Constructor Summary
Constructors Constructor Description Session()
-
Method Summary
Modifier and Type Method Description abstract RoomgetRoom()The Room object used for this session. abstract ConnectionStategetConnectionState()The ConnectionState of the session. abstract BooleangetIsConnected()Whether the session is connected or not. abstract BooleangetIsReconnecting()Whether the session is reconnecting or not. abstract UnitwaitUntilConnected()A function that suspends until the session is connected. abstract UnitwaitUntilDisconnected()A function that suspends until the session is disconnected. abstract UnitprepareConnection()Prepares the connection to speed up initial connection time. abstract Result<Unit>start(SessionConnectOptions options)Connect to the session. abstract Unitend()Disconnect from the session. -
-
Method Detail
-
getRoom
abstract Room getRoom()
The Room object used for this session.
-
getConnectionState
abstract ConnectionState getConnectionState()
The ConnectionState of the session.
-
getIsConnected
abstract Boolean getIsConnected()
Whether the session is connected or not.
-
getIsReconnecting
abstract Boolean getIsReconnecting()
Whether the session is reconnecting or not.
-
waitUntilConnected
abstract Unit waitUntilConnected()
A function that suspends until the session is connected.
-
waitUntilDisconnected
abstract Unit waitUntilDisconnected()
A function that suspends until the session is disconnected.
-
prepareConnection
abstract Unit prepareConnection()
Prepares the connection to speed up initial connection time.
-
start
@CheckResult() abstract Result<Unit> start(SessionConnectOptions options)
Connect to the session.
-
-
-
-