-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix utf8 split operation #420
Conversation
🦋 Changeset detectedLatest commit: 0049c93 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -301,13 +301,13 @@ export class LocalParticipant extends Participant { | |||
const writableStream = new WritableStream<string>({ | |||
// Implement the sink | |||
async write(text) { | |||
for (const textChunk in splitUtf8(text, STREAM_CHUNK_SIZE)) { | |||
for (const textByteChunk of splitUtf8(text, STREAM_CHUNK_SIZE)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the in
vs of
bug here is the same as livekit/client-sdk-js#1412
…s into lukas/better-utf8-split
see livekit/client-sdk-js#1414