-
Notifications
You must be signed in to change notification settings - Fork 102
Add RoomEvent.TokenRefreshed #605
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 4b61cde 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 |
…nto lukas/processor-prep
| } | ||
| } else if (ev.case === 'tokenRefreshed') { | ||
| this._token = ev.value.token; | ||
| this.emit('tokenRefreshed'); |
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.
qq: do we need to send the actual refreshed token in emitted callback?
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.
If it's helpful context, the python implementation seems to work in the same way: https://github.com/livekit/agents/pull/4145/changes#diff-77482fcf45f837abb299a2cf7c22bd57dd2ee2ff985da82c104f7bbf6ea76be8R221-R230
| case 'eos': | ||
| FfiClient.instance.off(FfiClientEvent.FfiEvent, this.onEvent); | ||
| this.controller.close(); | ||
| this.frameProcessor?.close(); |
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.
Oops, thanks for adding this, must have missed it the first time around!
No description provided.