salvo is working

This commit is contained in:
2024-11-12 15:42:01 -07:00
parent 3c6a436690
commit a25cf64681
3 changed files with 19 additions and 10 deletions
+3 -1
View File
@@ -10,7 +10,7 @@ use mumble_protocol::voice::{VoicePacket, VoicePacketPayload};
use mumble_protocol::Serverbound;
use mumble_web2_common::GuiConfig;
use std::time::Duration;
use tracing::{debug, error, info};
use tracing::{debug, error, info, instrument};
use wasm_bindgen::prelude::*;
use wasm_bindgen_futures::JsFuture;
use web_sys::js_sys::{Promise, Reflect, Uint8Array};
@@ -324,6 +324,7 @@ async fn create_encoder_worklet(
Ok(worklet_node)
}
#[instrument]
pub async fn network_connect(
address: String,
username: String,
@@ -354,6 +355,7 @@ pub async fn network_connect(
options.set_server_certificate_hashes(&array);
debug!("created WebTransportOptions");
console::log_1(&options.clone().into());
let transport = WebTransport::new_with_options(&address, &options).ey()?;
debug!("created WebTransport connection object");