refactor: ♻️ signal
This commit is contained in:
parent
ffc802eb59
commit
85fb4fb2af
3 changed files with 74 additions and 40 deletions
|
@ -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() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue