Skip to content
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

Add WASM library code #163

Closed
wants to merge 2 commits into from
Closed

Conversation

andipabst
Copy link

This PR adds the library code from https://github.com/andipabst/magic-wormhole-wasm for wasm support.
Related to #2 and #161

@andipabst
Copy link
Author

andipabst commented May 31, 2022

Since there are no checks on PRs to the wasm branch, you can also look at my fork for the GitHub Actions results: andipabst#1

wasm/src/event.rs Outdated Show resolved Hide resolved
/// the sending status and progress
pub async fn send_file(
config: WormholeConfig,
file: web_sys::Blob,
Copy link
Member

Choose a reason for hiding this comment

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

Obviously the API does not expose everything from the Rust API yet, but one important thing would be bytes streaming so that the file does not need to be held in memory in its entirety.

/// the sending status and progress
pub async fn send_file(
config: WormholeConfig,
file: web_sys::Blob,
Copy link
Member

Choose a reason for hiding this comment

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

Obviously the API does not expose everything from the Rust API yet, but one important thing would be bytes streaming so that the file does not need to be held in memory in its entirety.

@andipabst andipabst closed this Mar 26, 2024
@andipabst andipabst deleted the wasm-support branch March 26, 2024 19:27
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.

2 participants