Table of Contents

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

TextStreamInfo

Methods

Close(string)

Closes the stream.

public TextStreamWriter.CloseInstruction Close(string reason = null)

Parameters

reason string

A 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

text string

The 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.