-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add web client using WebSocket #4
Comments
We cannot proceed because libp2p-gossipsub isn't compiled for
That was why the https://github.com/vincev/wasm-p2p-chat was written using only floodsub, not gossipsub. I also tried to build https://github.com/mriise/libp2p-wasm-chat that supports gossipsub by using the local clone of rust-libp2p as an workaround for I guess that this issue will be resolved by libp2p/rust-libp2p#2653, because I've got a wasm-timer related error when referring to the local clone of libp2p-gossipsub, as mentioned in https://github.com/mriise/libp2p-wasm-chat/blob/4417083a7a1a3ed4ddcfe33d4f5fa6bb64d25c04/Cargo.toml#L32. All of these efforts have been commited in the |
Unfortunately, libp2p-gossipsub doesn't support WASM well currently. That's why I used libp2p-floodsub instead. For more details, please see #4 (comment)
Unfortunately, libp2p-gossipsub doesn't support WASM well currently. That's why I used libp2p-floodsub instead. For more details, please see #4 (comment)
There are many ways to build web clients as mentioned in https://connectivity.libp2p.io.
At the beginning, I wanted to build an web client using WebRTC that is supported by rust-libp2p.
But, I've found an easier example: https://github.com/vincev/wasm-p2p-chat based on WebSocket (better supported by rust-libp2p currently, compared to WebRTC), which is based on https://github.com/vincev/libp2p-websys-transport (written by the same author with the websocket example). This
libp2p-websys-transport
will replace the officiallibp2p-wasm-ext
in the rust-libp2p by the libp2p team: libp2p/rust-libp2p#3611. So, it would be worth investigating this way for now.After getting familiar with this websocket way, I'll try to use WebRTC as well.
The text was updated successfully, but these errors were encountered: