TextStreamReceiver

Constructors

Link copied to clipboard
constructor(info: TextStreamInfo, source: Channel<ByteArray>)

Properties

Link copied to clipboard
open override val flow: Flow<String>
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun readAll(): List<String>

Suspends and waits for all available data until the stream is closed.

Link copied to clipboard
suspend fun readNext(): String

Suspends and waits for the next piece of data.