You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for your work, it is great to see this?
I would like to know if its possible to have a way to keep WebSocketStream marked as Send ? I need it for Flutter using rust_flutter_bridge and also for tokio::spawn_blocking.
I've tried to remove Rc/RefCell and all closures stored, but the inner WebSocket is not Send and I don't know how to force it.
Could you help me ?
Thanks
The text was updated successfully, but these errors were encountered:
This is not possible. JS objects are not thread-safe except in very specific instances and underneath the Rust there's just a normal Websocket object. This isn't just Rust's compiler trying to save you from doing something bad: You actually can't move this into a different thread. rustwasm/wasm-bindgen#955
Hey there,
First of all, thanks for your work, it is great to see this?
I would like to know if its possible to have a way to keep WebSocketStream marked as Send ? I need it for Flutter using rust_flutter_bridge and also for
tokio::spawn_blocking
.I've tried to remove Rc/RefCell and all closures stored, but the inner WebSocket is not Send and I don't know how to force it.
Could you help me ?
Thanks
The text was updated successfully, but these errors were encountered: