Outgoing Data Stream Manager
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
Start sending a stream of bytes. Call ByteStreamSender.close when finished sending.
Link copied to clipboard
Start sending a stream of text. Call TextStreamSender.close when finished sending.