exokitxr / exokit

Native VR/AR/XR engine for JavaScript 🦖
MIT License
997 stars 118 forks source link

Support for custom protocols in resource loader #1213

Open RangerMauve opened 5 years ago

RangerMauve commented 5 years ago

This is to follow up from our discussions on Discord and to keep stuff in one place.

It'd be nice to be able to load resources in Exokit from different protocols, such as dat://.

Currently there's no single place that resources are loaded that would handle this use case. With that in mind, here's what needs to be done:

This might also be useful for the exokit:// protocol handler stuff that's already in there.

RangerMauve commented 5 years ago

Currently working on the window-xhr changes. :)

Hopefully I'll be able to put in like 4-8 hours a week on this.

RangerMauve commented 5 years ago

window-xhr has been updated to be based on fetch.

For intercepts, we can make use of bogo-fetch

So the next step is to start putting this stuff together in exokit. 😁

RangerMauve commented 5 years ago

Woot, check out the initial PR. :D