IncomingMessageSubscription

interface IncomingMessageSubscription : AutoCloseable

Represents an active incoming message subscription with signald.

This interface is here because JavaScript has a different client implementation based on suspending functions, while all the other platforms use non-suspend functions.

Functions

close
Link copied to clipboard
common
abstract override fun close()
nextMessage
Link copied to clipboard
common
abstract fun nextMessage(): ClientMessageWrapper?
nextMessageSuspend
Link copied to clipboard
common
abstract suspend fun nextMessageSuspend(): ClientMessageWrapper?

Properties

initialMessagesCount
Link copied to clipboard
common
abstract val initialMessagesCount: Int
The number of messages sent while we were waiting for signald's response to the subscribe request.

Inheritors

Subscription
Link copied to clipboard