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

Call out the benefits of browser-compatible transports #25

Open
aschmahmann opened this issue Jul 22, 2022 · 0 comments
Open

Call out the benefits of browser-compatible transports #25

aschmahmann opened this issue Jul 22, 2022 · 0 comments

Comments

@aschmahmann
Copy link
Contributor

aschmahmann commented Jul 22, 2022

When listing addresses for peers we should explicitly check if they have advertised browser-compatible transport addresses (WSS, WebTransport, WebRTC) and if they are reachable. May want to link to https://connectivity.libp2p.io/

Supporting WSS/WebTransport/WebRTC addresses means that nodes in more limited environments, in particular browser nodes, will be able to fetch data directly from you rather than requiring some other node to proxy requests for them and slow things down in the process. While these protocols generally have more performant alternatives, for example WSS is not the most performant protocol (e.g. libp2p's usage of WS is more efficient than WSS) it can be important to have it exposed. WebTransport and WebRTC should make this even easier for people who don't have the domain names needed for WSS support.

Pieces required to make this happen:

  • Try explicitly dialing WSS/WebTransport/WebRTC addresses from the internal go-libp2p node if they are available rather than other addresses
    • We could also try all the addresses and report back which ones are reachable vs not
    • Requires an update of go-libp2p in order for these dials to work at all (Update go-libp2p and redeploy #26)
  • Front end processing and text to signal to the end user that it's fine if they don't support these protocols but that they should if they can
    • Pointer to instructions for how they can do so (e.g. a WSS listener or a WS listener with some TLS termination endpoint in front, enabling WebTransport, etc.)
@aschmahmann aschmahmann changed the title Call out the benefits of WSS support Call out the benefits of browser-compatible transports Dec 13, 2022
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

1 participant