livekit-client 2.9.2 → 2.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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),
|