Open ShadowJonathan opened 2 years ago
This is a bit of a dream for the future, but it would be amazing if this crate can support compiling to WASM, use WS through browser apis, and then provide Promise-based APIs for JS/TS consumption.
Resources;
https://lib.rs/crates/ws_stream_wasm
https://rustwasm.github.io/wasm-bindgen/reference/js-promises-and-rust-futures.html
This is a bit of a dream for the future, but it would be amazing if this crate can support compiling to WASM, use WS through browser apis, and then provide Promise-based APIs for JS/TS consumption.
Resources;
https://lib.rs/crates/ws_stream_wasm
https://rustwasm.github.io/wasm-bindgen/reference/js-promises-and-rust-futures.html