Class TextStreamWriter
- Namespace
- LiveKit
Writer for an outgoing text data stream.
public class TextStreamWriter
- Inheritance
-
TextStreamWriter
- Inherited Members
- Extension Methods
Properties
Info
public TextStreamInfo Info { get; }
Property Value
Methods
Close(string)
Closes the stream.
public TextStreamWriter.CloseInstruction Close(string reason = null)
Parameters
reasonstringA string specifying the reason for closure, if the stream is not being closed normally.
Returns
- TextStreamWriter.CloseInstruction
A TextStreamWriter.CloseInstruction that completes when the close operation is complete or errors. Check Error to see if the operation was successful.
Write(string)
Writes text to the stream.
public TextStreamWriter.WriteInstruction Write(string text)
Parameters
textstringThe text to write.
Returns
- TextStreamWriter.WriteInstruction
A TextStreamWriter.WriteInstruction that completes when the write operation is complete or errors. Check Error to see if the operation was successful.