olive/proxy
The proxy
module starts the proxy server that redirects to the “main” server
It also injects a websocket connection and handles it, via the client_registry
module, to add / remove them, and send them a websocket message to trigger the
actual reload of the browser.
Functions
pub fn start_http(
config: Config,
clients: ClientRegistry,
) -> Result(Subject(Message), StartError)