SubscriptionPreviewClient
class SubscriptionPreviewClient(previewData: Map<UniqueId, SubscriptionState<*>>, val defaultSubscriptionOptions: SubscriptionOptions = SubscriptionOptions()) : SubscriptionClient
Usage:
val subscriptionClient = SubscriptionPreviewClient {
on(MySubscriptionId1) { SubscriptionState.success("data") }
on(MySubscriptionId2) { .. }
}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(previewData: Map<UniqueId, SubscriptionState<*>>, defaultSubscriptionOptions: SubscriptionOptions = SubscriptionOptions())
Types
Link copied to clipboard
class Builder
Builder for SubscriptionPreviewClient.