libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.github.io/js-libp2p/
Other
2.34k stars 446 forks source link

Tracking Issue - WebRTC direct in Node.js #2581

Open 2color opened 5 months ago

2color commented 5 months ago

Background

WebRTC-direct is currently only supported in browsers as mentioned in package.

This is a tracking issue for adding support for WebRTC-direct in Node.js, which would allow browsers to dial Node.js directly (without circuit relay and signalling) without needing for a TLS certificate as in the case of WebSockets.

Dependencies

This require changes to both https://github.com/murat-dogan/node-datachannel and https://github.com/paullouisageneau/libdatachannel to allow SDP Munging.

Related PRs/issues:

### Tasks
- [ ] https://github.com/paullouisageneau/libjuice/pull/243
- [ ] https://github.com/paullouisageneau/libdatachannel/pull/1172
- [ ] https://github.com/paullouisageneau/libdatachannel/pull/1201
- [ ] https://github.com/paullouisageneau/libdatachannel/pull/1204
- [ ] https://github.com/murat-dogan/node-datachannel/pull/257
- [ ] https://github.com/murat-dogan/node-datachannel/pull/256
- [ ] https://github.com/libp2p/go-libp2p/issues/2827
achingbrain commented 5 months ago

There is good news when all of the above PRs are applied:

image
christroutner commented 2 months ago

I am trying to use webRTC in an exclusive node.js environment (no browser nodes). I created issue #2702 and wanted to link to it here, as it might be relevant to this discussion.