Skip to content
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

rust-libp2p for browser-to-browser communication #2108

Closed
thankrandomness opened this issue Jun 19, 2021 · 2 comments
Closed

rust-libp2p for browser-to-browser communication #2108

thankrandomness opened this issue Jun 19, 2021 · 2 comments

Comments

@thankrandomness
Copy link

Hi! I am aware of js-libp2p. I wanted to check if there's a wasm compilation of rust-libp2p that anyone used for browser-to-browser communication. - Thanks!

@mxinden
Copy link
Member

mxinden commented Jun 21, 2021

Hi @thankrandomness,

Yes, rust-libp2p compiles to WASM and is used to run in browsers e.g. via https://github.com/paritytech/substrate.

Note: In order for two browsers to communicate you need some intermediary relay or coordination point for hole punching, given the restrictions of browser platforms. See https://github.com/mxinden/specs/blob/hole-punching/connections/hole-punching.md and libp2p/specs#312 for details.

@mxinden
Copy link
Member

mxinden commented Jul 7, 2021

Closing here. Feel free to comment or open a new issue in case you have more questions @thankrandomness.

@mxinden mxinden closed this as completed Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants