Using Zenoh from webassembly #69
-
Hi, I'm working on a project where all data are communicated from data gathering devices to a central data server using zenoh. There will be a webassembly based website developed in Rust using egui.rs for frontend, and I am wondering if it is possible to use zenoh to communicate data to a webassembly program running in a browser. Has anyone attempted to test/use zenoh in such a setup ? Best Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, @SverreEplov we indeed started experimenting with WASM. We are also investigating how to build the WASM from the Rust implementation. It first requires a review of external dependencies, as some of the ones we are using currently do not compile for the WASM target. Is your use-case explicitly require a Zenoh rust-based client to compile as WASM (I guess so as you are using egui.rs) or a JS/WASM API will be able to fit? |
Beta Was this translation helpful? Give feedback.
-
Just to keep track of the current status:
|
Beta Was this translation helpful? Give feedback.
Hi, @SverreEplov we indeed started experimenting with WASM.
For the time being, we started with Zenoh-Pico, for which there is a PR #135 that enables to compile to WASM with the support of WebSocket as a transport.
We are also investigating how to build the WASM from the Rust implementation. It first requires a review of external dependencies, as some of the ones we are using currently do not compile for the WASM target.
Is your use-case explicitly require a Zenoh rust-based client to compile as WASM (I guess so as you are using egui.rs) or a JS/WASM API will be able to fit?