Replies: 2 comments 1 reply
-
It's not possible to use this with WASM as it exists in the context of the web. For WASM runtimes that support WASI or some other way to perform socket IO it might be possible. If you can implement UDP socket I/O you can provide a muxed connection via |
Beta Was this translation helpful? Give feedback.
-
While not an answer to your actual question, maybe some other folks would like to know an alternative solution to this problem: When talking about Browsers as WASM target, they already ship with webrtc. You can implement your browser client application using rust-wasm and then interop to the JS webrtc API for webrtc scenarios. Admittedly not a perfect solution, but it's what we got in browsers at the moment. |
Beta Was this translation helpful? Give feedback.
-
Hi. I read that UDP sockets aren't in WASM. Will this work as expected when targeting WASM with Rust? For additional context, I'm writing a Flutter application that uses a Rust library, which I'm also writing, that will implement a bespoke internet protocol. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions