Closed entropylost closed 3 years ago
Ouch! This is due to a recent refactorization. I will fix it ASAP!
Thanks!!
As you suggested, this https://github.com/lemunozm/message-io/pull/99 fixes the compilation issue.
Regarding your comment, why you say that this change doesn't make sense for the web? Maybe i'm not understanding something
Websocket seemed to be an implementation of websocket not bindings to web_sys's websocket?
Sorry, I didn't understand you well. Yes, the message-io implementation is based in tungstenite-rs. which seems to not support wasm.
The idea will be to detect the current platform and swap the WebSocket adapter implementation from tungstenite to some other crate as web-sys
or ws_stream_wasm
. At this moment you can not use WebSocket with wasm. Sorry for the inconvenience. I will create a new issue to tackle this feature.
I close this issue (since the compilation problem is solved) and open https://github.com/lemunozm/message-io/issues/100 instead to tracking the wasm support
Error message:
This might be intended, but in that case there should be
websocket = ["tcp"]
. It also doesn't make sense for the web either. Maybe have two differentwebsocket
features?websocket
andwebsocket-web
.