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

Add WebRTC Direct Transport #872

Open
D4nte opened this issue Mar 1, 2022 · 1 comment
Open

Add WebRTC Direct Transport #872

D4nte opened this issue Mar 1, 2022 · 1 comment

Comments

@D4nte
Copy link
Contributor

D4nte commented Mar 1, 2022

Problem

The only js-waku<>nim-waku transport currently support is secure websocket.
For users to use secure websocket in the browser without having to hack into their about:config, the nwaku node needs to use a domain certificate for the wss connection.

Which means the nwaku node operator needs to:

  • Acquire a domain name
  • Set it up
  • Acquire a domain name certificate (e.g. letsencrypt)
  • Pass the result cert and key to nwaku

This creates friction for the node operator.

Solution

WebRTC Direct enables a web app to connect to a remote node without the need of a SSL certificate.

The node operator just need to have a port open for incoming connections.

Check out this PoC: waku-org/js-waku#588 where js-waku is used in the browser to connect to a remote NodeJS application.

Notes

@Menduist
Copy link
Contributor

Menduist commented Mar 2, 2022

Note that nim-libp2p won't handle it any time soon, see vacp2p/nim-libp2p#698
It's currently not on our roadmap, and need multiple months of work. If waku needs it, we'll probably have to give it to a new hire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Icebox
Development

No branches or pull requests

2 participants