Subscription

Subscription for channel that provides messages sending possibility to other subscribers as well observing their messages.

See also

observe messages of other subscribers.

send message to other subscribers.

Properties

Link copied to clipboard
abstract val isDisposed: Boolean

Functions

Link copied to clipboard
open fun close()
Link copied to clipboard
abstract fun dispose()

Dispose the resource.

Link copied to clipboard
abstract fun observe(onMessage: suspend (String) -> Unit)
Link copied to clipboard
abstract fun send(message: String)