Skip to content

Commit 136f627

Browse files
committed
Fix utf8 text split iteration
1 parent 5d4a634 commit 136f627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/room/participant/LocalParticipant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ export default class LocalParticipant extends Participant {
16081608
const writableStream = new WritableStream<string>({
16091609
// Implement the sink
16101610
async write(text) {
1611-
for (const textChunk in splitUtf8(text, STREAM_CHUNK_SIZE)) {
1611+
for (const textChunk of splitUtf8(text, STREAM_CHUNK_SIZE)) {
16121612
await localP.engine.waitForBufferStatusLow(DataPacket_Kind.RELIABLE);
16131613
const chunk = new DataStream_Chunk({
16141614
content: new TextEncoder().encode(textChunk),

0 commit comments

Comments
 (0)