refactor: ♻️ signal

This commit is contained in:
Ahmet Kaan Gümüş 2025-04-14 04:58:44 +03:00
parent ffc802eb59
commit 85fb4fb2af
3 changed files with 74 additions and 40 deletions

View file

@ -1,5 +1,4 @@
use leptos::logging::log;
use protocol::RTCSessionOffer;
use wasm_bindgen_futures::JsFuture;
use web_sys::{
RtcConfiguration, RtcIceServer, RtcPeerConnection, RtcSessionDescriptionInit,
@ -36,12 +35,9 @@ pub async fn offer(username: String) {
.as_string()
.unwrap();
log!("{}", rtc_session_offer);
let data = rtc_session_offer;
send_offer(RTCSessionOffer {
username,
rtc_session_offer,
})
.await;
send_offer(&username, &data).await;
}
pub async fn answer() {}