SubscriptionAction

sealed interface SubscriptionAction<out T>

Subscription actions are used to update the subscription state.

Parameters

T

Type of the receive value from the subscription.

Inheritors

Types

Link copied to clipboard
data class ReceiveFailure(val error: Throwable, val errorUpdatedAt: Long) : SubscriptionAction<Nothing>

Indicates that the subscription has failed.

Link copied to clipboard
data class ReceiveSuccess<T>(val data: T, val dataUpdatedAt: Long) : SubscriptionAction<T>

Indicates that the subscription is successful.

Link copied to clipboard

Resets the subscription state.

Link copied to clipboard

Updates the subscriber status.