-
Hi, is there any example of usage of the wasm-ext websocket transport? The existing documentation doesn't describe how to instantiate the transport in wasm. Non exhaustive example what I'm trying to do: use libp2p::wasm_ext;
(...)
let transport_base = wasm_ext::ffi::websocket_transport(); And what I'm getting:
Please note that my [target.'cfg(target_arch = "wasm32")'.dependencies]
async-datachannel-wasm = "0.1.2"
futures = "0.3.17"
futures-macro = "0.3.17"
futures-timer = { version = "3.0.2", features = ["wasm-bindgen"] }
send_wrapper = { version = "0.5.0", features = ["futures"] }
libp2p = { version = "0.41.0", features = ["wasm-bindgen", "wasm-ext", "websocket", "mplex", "noise", "ping", "rendezvous"], default_features = false } |
Beta Was this translation helpful? Give feedback.
Answered by
mxinden
Dec 15, 2021
Replies: 1 comment 2 replies
-
@wngr or @PhilippGackstatter can you help here? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sireliah
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@wngr or @PhilippGackstatter can you help here?