Expand description
Locator resolution — the Thread’s “DNS”, network-first with a local fallback.
Given a thread://… Locator, resolve it to a world’s manifest text (+ where
its assets live). Tries the main agent’s live resolver
(GET <base>/thread/resolve?loc=… → { manifestUrl, assetBase, … }, then
fetches the manifest), and falls back to a local world.json
(<worlds_root>/<path>/world.json) when the network is unavailable. So the
browser works today against local worlds and cuts over to the live network
the moment the resolver is deployed — no code change.
Structs§
- Travel
Result - A resolved world: its manifest text + where its assets resolve.
Functions§
- fetch_
world - Resolve a Locator to a world (blocking — call on a background thread), in order of decreasing coupling:
- register_
synthesizer - Register the session’s synthesizer (first registration wins).