ipfs-shipyard / ipfs-service-worker-demos

[INACTIVE/DEPRECATED] Demo ~2017: run an IPFS node inside a Service Worker and serve all your IPFS URLs directly from IPFS!
MIT License
84 stars 15 forks source link

WebRTC from service worker #13

Open backkem opened 5 years ago

backkem commented 5 years ago

It seems there is a new window of opportunity for making WebRTC work from the service worker, see webtorrent/community#11. Are you guys interested in/tracking/weighing in on this discussion?

lidel commented 5 years ago

Yes, we've been signaling the need to browser vendors for some time. Others in community been asking for this since 2015 and AFAIK current discussion on w3c lists highlights various use cases, including data channels, which IPFS would love to use in Service Worker.

IIUC we are interested in "1. Enable data channel support in workers":

On IPFS side there is a meta-discussion about transports in browsers at: https://github.com/ipfs/js-ipfs/issues/1088

Tryptophan commented 4 years ago

Would it be possible to use this polyfill? https://github.com/johanholmerin/worker-webrtc Seems to at least support datachannels.