ConnectionStatus

Enum class represents the connection status.

Enum class represents the connection status.

Syntax:enum ConnectionStatus : Enum<ConnectionStatus>

EntriesValueDescription
NONEnoneIndicates that the connection status is not set
CONNECTINGconnectingIndicates that the messaging connection is connecting.
CONNECTEDconnectedIndicates that the messaging connection is connected.
REFUSEDrefusedIndicates that the messaging connection is disconnected.
DISCONNECTINGdisconnectingIndicates that the messaging connection is disconnecting.
CLOSEDclosedIndicates that the messaging connection is closed.
ERRORerrorIndicates that the messaging connection is in an error state.

Companion Functions

fromValue

Converts a string to the corresponding ConnectionStatus.

Syntax:fun fromValue(value: String): ConnectionStatus?

Returns Value The ConnectionStatus corresponds to the given string value. null if no matching connection status is found.

Parameters

ParametersTypeDescription
valueStringThe string represents the connection status.