This is Pre-Alpha software only for testing purposes.
This is a repository of the JavaScript tool which run on initial load of a web application running on Holo.Host P2P infrastructure.
Every Holo web application starts from the hLoader index.html and index.js. The loader function initHapp
reads the current URL and uses this to query the resolver service for Hosts which can provide the static assets and also a holochain node for the app that is registered at this URL.
The resolved returns a collection of host URLs, currently the first one is selected.
The loader then loads content of the hApp into the iFrame. This is also used to configure the websocket connection in hClient.js, the client side holo library, so that it can redirect holochain calls to the holo host.
In the next iteration iFrame will communicate with parent window to update page title, update url and handle browsing history.
TODO: Set up automatic deployment to holo infrastructure