wip salvo server

This commit is contained in:
2024-11-11 17:14:53 -07:00
parent 80aedc7269
commit 3c6a436690
7 changed files with 1030 additions and 722 deletions
+3 -2
View File
@@ -10,13 +10,14 @@ asset_dir = "public"
[web.app]
# HTML title tag content
title = "mumble-web"
title = "Mumble Web 2"
base_path = "gui"
[web.watcher]
# when watcher trigger, regenerate the `index.html`
reload_html = true
# which files or dirs will be watcher monitoring
watch_path = ["src", "public"]
watch_path = ["src", "assets"]
# include `assets` in web platform
[web.resource]
+6 -3
View File
@@ -351,7 +351,7 @@ pub async fn network_connect(
debug!("created option object: {:?}", &object);
let mut options = WebTransportOptions::new();
options.server_certificate_hashes(&array);
options.set_server_certificate_hashes(&array);
debug!("created WebTransportOptions");
@@ -359,8 +359,11 @@ pub async fn network_connect(
debug!("created WebTransport connection object");
console::log_1(&transport.clone().into());
if let Err(e) = wasm_bindgen_futures::JsFuture::from(transport.ready()).await {
bail!("could not connect to transport: {e:?}");
if let Err(e) = wasm_bindgen_futures::JsFuture::from(transport.ready())
.await
.ey()
{
bail!("could not connect to transport: {e}");
}
info!("transport is ready");