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

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

Properties

Link copied to clipboard
abstract val initialMessagesCount: Int

The number of messages sent while we were waiting for signald's response to the subscribe request. This is currently used for detecting such a situation.

Inheritors

Link copied to clipboard