SubscriptionPreviewClient

class SubscriptionPreviewClient(previewData: Map<UniqueId, SubscriptionState<*>>, val defaultSubscriptionOptions: SubscriptionOptions = SubscriptionOptions()) : SubscriptionClient

Usage:

val subscriptionClient = SubscriptionPreviewClient {
on(MySubscriptionId1) { SubscriptionState.success("data") }
on(MySubscriptionId2) { .. }
}

Constructors

Link copied to clipboard
constructor(previewData: Map<UniqueId, SubscriptionState<*>>, defaultSubscriptionOptions: SubscriptionOptions = SubscriptionOptions())

Types

Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun <T> getSubscription(key: SubscriptionKey<T>, marker: Marker): SubscriptionRef<T>