Package org.jellyfin.sdk.api.sockets.data

Types

Link copied to clipboard
data class SubscriptionType<MESSAGE>(    val messageType: KClass<MESSAGE>,     val createStartMessage: (<ERROR CLASS>) -> <ERROR CLASS>,     val createStopMessage: () -> <ERROR CLASS>)

Information about a subscription. Contains the incoming message type and the outgoing messages types used to start and stop the subscription.

Properties

Link copied to clipboard
val SUBSCRIPTION_TYPES: Set<SubscriptionType<out <ERROR CLASS>>>

All socket message types that require a subscription. Each type contains the message type and start/stop message constructors. If a message type does not exist in this set it does not need a start/stop message.

Link copied to clipboard
val KClass<out <ERROR CLASS>>.subscriptionType: SubscriptionType<out <ERROR CLASS>>?

Find the subscription type for a given IncomingSocketMessage. Used for automatic subscription handling in the WebSocket API.