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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livekit-client",
3
- "version": "2.9.2",
3
+ "version": "2.9.3",
4
4
  "description": "JavaScript/TypeScript client SDK for LiveKit",
5
5
  "main": "./dist/livekit-client.umd.js",
6
6
  "unpkg": "./dist/livekit-client.umd.js",
@@ -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 in splitUtf8(text, STREAM_CHUNK_SIZE)) {
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),