Chat

class Chat(localParticipant: LocalParticipant, dataHandler: DataHandler, serverSupportsDataStreams: () -> Boolean)

Chat state for sending messages through LiveKit.

Constructors

Link copied to clipboard
constructor(localParticipant: LocalParticipant, dataHandler: DataHandler, serverSupportsDataStreams: () -> Boolean)

Properties

Link copied to clipboard

Indicates if currently sending a chat message.

Link copied to clipboard

The log of all messages sent and received.

Link copied to clipboard

A hot flow emitting a ReceivedChatMessage for each individual message sent and received.

Functions

Link copied to clipboard
suspend fun send(message: String, streamTextOptions: StreamTextOptions = StreamTextOptions(topic = DataTopic.CHAT.value)): Result<ReceivedChatMessage>

Send a message through LiveKit.