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
| Name | Summary |
|---|---|
| Event | data class Event(val event: GraphQlEvent) : EventUpdate |
| 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. |
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |
Event
data class Event(val event: GraphQlEvent) : EventUpdate
Constructors
| Event | constructor(event: GraphQlEvent) |
Properties
| Name | Summary |
|---|---|
| event | val event: GraphQlEvent |
Functions
| Name | Summary |
|---|---|
| destroy | open 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
| Interrupted | constructor(message: String) |
Properties
| Name | Summary |
|---|---|
| message | val message: String |
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |