feat: ⚗️ experiment: rustls

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-04-15 03:38:03 +03:00
parent 0f31fd54ea
commit 68a280fc80
6 changed files with 82 additions and 10 deletions

View file

@ -9,13 +9,14 @@ edition = "2021"
anyhow = "1.0.81"
brotli = "5.0.0"
cpal = { version = "0.15.3", features = ["wasm-bindgen"] }
dioxus = { version = "0.5.0", features = ["web"] }
dioxus = { version = "0.5.1", features = ["web"] }
futures-core = "0.3.30"
futures-util = { version = "0.3.30", features = ["futures-sink", "sink"] }
log = "0.4.21"
reqwest = { version = "0.12.2", features = ["json"] }
ringbuf = "0.3.3"
serde = { version = "1.0.197", features = ["derive"] }
tokio-tungstenite = { version = "0.21.0", features = ["__rustls-tls"] }
tokio-tungstenite-wasm = "0.3.1"
tokio_with_wasm = "0.4.3"
wasm-logger = "0.2.0"

View file

@ -20,6 +20,7 @@ pub async fn start_listening(
if is_listening() {
log::info!("Trying Sir");
let connect_addr = "ws://192.168.1.2:2424";
let (mut stream_producer, stream_consumer);
match tokio_tungstenite_wasm::connect(connect_addr).await {
Ok(ws_stream) => (stream_producer, stream_consumer) = ws_stream.split(),