feat: ✨ websocket split
This commit is contained in:
parent
16481ed7bd
commit
4a695dce40
4 changed files with 44 additions and 19 deletions
|
@ -39,7 +39,11 @@ pub fn app() -> impl IntoView {
|
|||
let webrtc_answer = webrtc.clone();
|
||||
let answer_button = button()
|
||||
.on(leptos::ev::click, move |_| {
|
||||
log!("{:#?}", webrtc_answer.get_status());
|
||||
let webrtc_answer = webrtc_answer.clone();
|
||||
spawn_local(async move {
|
||||
let answer_result = webrtc_answer.answer().await;
|
||||
log!("Answer Result Is = {:#?}", answer_result);
|
||||
});
|
||||
})
|
||||
.child("Answer");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue