feat: handle multiple clients with one sound stream

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-04-08 20:21:54 +03:00
parent 4b158d5195
commit 7707c66407
4 changed files with 85 additions and 26 deletions

View file

@ -21,8 +21,7 @@ pub fn listen_renderer() -> Element {
}
});
}
}
else {
} else {
is_listening.set(false);
}
};

View file

@ -70,8 +70,7 @@ pub async fn sound_stream(
};
if let Err(_) = producer.push(single_data) {}
}
}
else {
} else {
break;
}
}