Skip to content

Shared Channel for WebAssembly

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

wasm-rs/shared-channel

Repository files navigation

Shared Channel for WebAssembly

Crate API Chat

This crate provides a way for WebAssembly threads to receive messages from other threads using a JavaScript primitive called SharedArrayBuffer which allows to share memory and use atomics between different threads.

This allows us to deploy Rust code as a worker process communicating with the main thread.

Usage

Include this dependency in your Cargo.toml:

[dependencies]
wasm-rs-shared-channel = "0.1.0"

Take a look at the example to see how wasm-rs-shared-channel can be integrated.

License

Licensed under either of

About

Shared Channel for WebAssembly

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks