Skip to main content

EventUpdate

sealed class EventUpdate : Disposable

An item delivered by a subscription.

A subscription recovers from a lost connection or from falling behind the server on its own, so those interruptions are delivered as updates rather than raised as errors: a caller that does not care about the gap can ignore them and keep reading.

Inheritors​

Event
Interrupted

Types​

NameSummary
Eventdata class Event(val event: GraphQlEvent) : EventUpdate
Interrupteddata class Interrupted(val message: String) : EventUpdate
Delivery was interrupted and has recovered — the connection dropped, or the server dropped payloads because this client could not keep up. Items in the gap may have been missed.

Functions​

NameSummary
destroyopen override fun destroy()

Event​

data class Event(val event: GraphQlEvent) : EventUpdate

Constructors​

Eventconstructor(event: GraphQlEvent)

Properties​

NameSummary
eventval event: GraphQlEvent

Functions​

NameSummary
destroyopen override fun destroy()

Interrupted​

data class Interrupted(val message: String) : EventUpdate

Delivery was interrupted and has recovered — the connection dropped, or the server dropped payloads because this client could not keep up. Items in the gap may have been missed.

Constructors​

Interruptedconstructor(message: String)

Properties​

NameSummary
messageval message: String

Functions​

NameSummary
destroyopen override fun destroy()