toObject

abstract fun <T, U> SubscriptionState<T>.toObject(subscription: SubscriptionRef<T>, select: (T) -> U): SubscriptionObject<U>

Converts the given SubscriptionState to SubscriptionObject.

Return

The converted object.

Parameters

subscription

The subscription reference.

select

A function that selects the object from the reply.