Rust WASM Runtime + WebSockets == 💔 #3
Markusdreyer
started this conversation in
General
Replies: 2 comments 3 replies
-
The Cosmonic framework has support for the NATS message broker, which supports WebSockets from version 2.2. |
Beta Was this translation helpful? Give feedback.
0 replies
-
A possible compromise to get something out, but at the same time trying out WASM services could be to have the WebSocket server running as a traditional Docker image running in a conventional cloud service, and building the client API as a REST API, allowing for out-of-the-box WASM support with either Fermyon or Cosmonic. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Compiling Rust to a WASM target is not as straightforward as initially thought. The WASM binaries are very lightweight and barebones, and many of the commonly used libraries are not built to support WASM targets. This means that you currently need to build your WASM apps with a WASM-supported framework, significantly limiting the ecosystem of libraries to use. For example, building a WASM Websocket server is not supported out of the box in either Fermyon or Cosmonic.
Beta Was this translation helpful? Give feedback.
All reactions