chr15m / bugout

Back end web app services over WebRTC.
https://chr15m.github.io/bugout
MIT License
607 stars 59 forks source link

Not working in service worker #21

Closed ghost closed 4 years ago

ghost commented 4 years ago

My Bugout instance does not work when I create it in Service Worker. Only the public address from the .address () call is available, but no connection socket is created. Also I do not get any errors in the console. Any ideas or is this impossible?

chr15m commented 4 years ago

@Vladborne unfortunately WebRTC channels that the underlying WebTorrent library use are not supported in service workers. See here for more info:

https://github.com/w3c/ServiceWorker/issues/670 https://github.com/w3c/webrtc-pc/issues/230