-
public final class SfuSocketState.Disconnected.DisconnectedTemporarily extends SfuSocketState.Disconnected
State of socket when a recoverable Error happens (a temporary socket disconnect that should be retried). The carried error holds the exact Error.NetworkError.serverErrorCode and message, so failures such as a missing JoinResponse (see io.getstream.video.android.core.errors.VideoErrorCode.SFU_JOIN_RESPONSE_TIMEOUT) are attributed precisely without needing a separate state type.
-
-
Field Summary
Fields Modifier and Type Field Description private final Error.NetworkErrorerrorprivate final WebsocketReconnectStrategyreconnectStrategy
-
Constructor Summary
Constructors Constructor Description SfuSocketState.Disconnected.DisconnectedTemporarily(Error.NetworkError error, WebsocketReconnectStrategy reconnectStrategy)
-
Method Summary
Modifier and Type Method Description final Error.NetworkErrorgetError()final WebsocketReconnectStrategygetReconnectStrategy()-
-
Constructor Detail
-
SfuSocketState.Disconnected.DisconnectedTemporarily
SfuSocketState.Disconnected.DisconnectedTemporarily(Error.NetworkError error, WebsocketReconnectStrategy reconnectStrategy)
-
-
Method Detail
-
getError
final Error.NetworkError getError()
-
getReconnectStrategy
final WebsocketReconnectStrategy getReconnectStrategy()
-
-
-
-