livekit-client 2.9.2 → 2.9.3
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1608,7 +1608,7 @@ export default class LocalParticipant extends Participant {
|
|
1608
1608
|
const writableStream = new WritableStream<string>({
|
1609
1609
|
// Implement the sink
|
1610
1610
|
async write(text) {
|
1611
|
-
for (const textChunk
|
1611
|
+
for (const textChunk of splitUtf8(text, STREAM_CHUNK_SIZE)) {
|
1612
1612
|
await localP.engine.waitForBufferStatusLow(DataPacket_Kind.RELIABLE);
|
1613
1613
|
const chunk = new DataStream_Chunk({
|
1614
1614
|
content: new TextEncoder().encode(textChunk),
|