Skip to main content

TransactionUpdate

TransactionUpdate

enum TransactionUpdate

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.

TransactionUpdate.interrupted(message:)

case interrupted(message: String)

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.

TransactionUpdate.transaction(transaction:)

case transaction(transaction: SignedTransaction)