feat: 💄 first gui for streamer

fix: 🚑 oneshot fail in listener socket
This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-04-27 15:36:28 +03:00
parent c404f5b23f
commit 21d8781188
7 changed files with 67 additions and 16 deletions

View file

@ -9,7 +9,7 @@ use tokio_tungstenite::tungstenite::Message;
use crate::{Config, BUFFER_LENGTH};
const MAX_TOLERATED_MESSAGE_COUNT: usize = 10;
pub async fn start(sound_stream_consumer: Receiver<f32>, streamer_config:Config) {
pub async fn connect(sound_stream_consumer: Receiver<f32>, streamer_config:Config) {
let connect_addr =
match streamer_config.tls {
true => format!("wss://{}", streamer_config.address),