-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for wasm32-wasi
#261
Comments
|
The error looks like this:
It seems like the error is coming from |
I looked into this and it looks like the problem lies inside Tokio. But there is a plan to support wasm in the future and also a related tracking issue: #1597 As expected, the sync version of this crate compiles: |
Note that if Tokio gains wasm support, it would likely be Tokio v1 (or later).
This library is semi-abandoned. Have you tried other libraries like tungstenite instead? |
If you want to use client WebSockets from browser, you'll probably want to use browser implementation of websockets, not do the WebSocket negotiation manually from within WebAssembly. Maybe you just need web_sys::WebSocket? |
Yep that might be the best idea. I am researching this for a socket.io library I maintain, so there is no external pressure for WASM support right now.
Yep, that would be the way to go. |
This crate currently doesn't compile to the WebAssembly
wasm32-unknown-unknown
target. It yields the following compile error:Support for this target would enable usage in Wasm applications that are either running in the browser with crates like
web-sys
or in any freestanding runtime likewasmer
.The text was updated successfully, but these errors were encountered: