Webrtc-direct in jsipfs

Hi
How can I enable webrtc-direct in js-ipfs? I do not see any option for it in config.

Are you looking for js-libp2p-webrtc-direct?

I want to know how I can use this in ipfs?

I believe you can use this example and replace the TCP transport used with libp2p-webrtc-direct (or include it along-side it).

Don’t forget to include the module in this array here: js-ipfs/index.js at 6870873f0696bb5d8d91fce4a4ef1f7420443993 · ipfs/js-ipfs · GitHub

1 Like