feat: always ready for a streamer at relay

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-04-25 04:19:03 +03:00
parent 5bdc68b6ee
commit 56d17084e1
3 changed files with 159 additions and 112 deletions

View file

@ -12,11 +12,9 @@ cpal = { version = "0.15.3", features = ["wasm-bindgen"] }
dioxus = { version = "0.5.1", features = ["web"] }
futures-core = "0.3.30"
futures-util = { version = "0.3.30", features = ["futures-sink", "sink"] }
#getrandom = { version = "0.2.14", features = ["js"] }
log = "0.4.21"
reqwest = { version = "0.12.2", features = ["json"] }
ringbuf = "0.3.3"
#rustls-platform-verifier = "0.2.0"
serde = { version = "1.0.197", features = ["derive"] }
tokio-tungstenite-wasm = { version = "0.3.1", features = ["rustls-tls-webpki-roots"] }
tokio_with_wasm = "0.4.3"

View file

@ -16,7 +16,7 @@ pub async fn start_listening(
) {
if is_listening() {
log::info!("Trying Sir");
let connect_addr = "wss://tahinli.com.tr:2424";
let connect_addr = "ws://192.168.1.2:2424";
let ws_stream: tokio_tungstenite_wasm::WebSocketStream;
match tokio_tungstenite_wasm::connect(