-
Notifications
You must be signed in to change notification settings - Fork 995
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
webrtc: WASM support #4111
Comments
No plans currently but very grateful for a contribution! |
Yes indeed! Very grateful. |
Just stumbled upon rust-libp2p https://github.com/openmina/rust-libp2p/blob/webrtc/transports/wasm-ext/src/webrtc.js This is used in https://github.com/openmina/openmina/blob/0e0039bfdf8ae1942b029cf98740129e7847efa8/node/wasm/src/service/libp2p/mod.rs#L71-L82. Thanks @p-shahi for surfacing this. @binier since you have implemented the above, mind sharing some details here? Also would you be interested in upstreaming your work or help @youngjoon-lee to do so? One small note is that we are moving away from the |
Awesome. Thank you. I'll take a look at the openmina's implementation and see if I can migrate it into the websys way. |
@mxinden It's been a while since I touched that, so I don't remember all the details, but to speak to the state of the code, I'd say it's WIP and doesn't follow any specs (if there is any for webrtc transport). It works well with go-libp2p (modified), which was the goal. I won't be continuing work on that though, instead we've decided to implement and use custom protocol just based on WebRTC. @youngjoon-lee Let me know if you'll have any questions, I'll gladly help. |
Cross-referencing #4248 here. |
Description
Make WebRTC works in WASM environments.
Motivation
#3875 (comment): Discussion for the needs of WebRTC WASM
#4015: WebTransport implementation for WASM which can be a reference of this issue.
Current Implementation
The current WebRTC transport in rust-libp2p works only for standalone nodes.
Are you planning to do it yourself in a pull request?
Yes, if there is no plan by libp2p team.
The text was updated successfully, but these errors were encountered: