Skip to content

Update protocol and add SendDataRequest nonce #400

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

Merged
merged 2 commits into from
Jan 28, 2025
Merged

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Jan 27, 2025

No description provided.

Copy link

changeset-bot bot commented Jan 27, 2025

🦋 Changeset detected

Latest commit: b54259d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
livekit-server-sdk Patch
agent-dispatch Patch

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

@lukasIO lukasIO requested review from nbsp and bcherry January 27, 2025 15:08
//
// SPDX-License-Identifier: Apache-2.0

// Use the Web Crypto API if available, otherwise fallback to Node.js crypto
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use node:crypto either way? is crypto/web more random?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right, it's a bit overkill for this particular use case. Did it this way to be in line with how we're handling digest and it allows for easy removal once we drop node18 support.

relevant node docs:
> A convenient alias for crypto.webcrypto.getRandomValues(). This implementation is not compliant with the Web Crypto spec, to write web-compatible code use crypto.webcrypto.getRandomValues() instead.

@lukasIO lukasIO merged commit a8702d4 into main Jan 28, 2025
10 checks passed
@lukasIO lukasIO deleted the lukas/send-data-nonce branch January 28, 2025 07:30
@github-actions github-actions bot mentioned this pull request Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants