Skip to main content

GraphQlTransactionSubscription

open class GraphQlTransactionSubscription : Disposable, AutoCloseable, GraphQlTransactionSubscriptionInterface

A live subscription.

Call next in a loop to receive updates. It returns None once cancel has been called. If the indexer requires a newer SDK, next raises that error and the subscription ends: later calls return None. The subscription never ends otherwise.

Functions​

NameSummary
cancelopen override fun cancel()
Cancel the subscription, dropping the connection and unblocking a pending next.
close@Synchronized
open override fun close()
destroyopen override fun destroy()
isCanceledopen override fun isCanceled(): Boolean
Whether the subscription has been canceled.
nextopen suspend override fun next(): GraphQlTransactionUpdate?
Wait for the next update.