OutgoingDataStreamManager

Functions

Link copied to clipboard
open suspend fun sendFile(file: File, options: StreamBytesOptions = StreamBytesOptions()): Result<ByteStreamInfo>

Send a file through a data stream.

Link copied to clipboard
open suspend fun sendText(text: String, options: StreamTextOptions = StreamTextOptions()): Result<TextStreamInfo>

Send text through a data stream.

Link copied to clipboard
abstract suspend fun streamBytes(options: StreamBytesOptions): ByteStreamSender

Start sending a stream of bytes. Call ByteStreamSender.close when finished sending.

Link copied to clipboard
abstract suspend fun streamText(options: StreamTextOptions = StreamTextOptions()): TextStreamSender

Start sending a stream of text. Call TextStreamSender.close when finished sending.