ported example app, live_kit_client2 is done

This commit is contained in:
Mikayla 2023-11-01 09:19:32 -07:00
parent 244e8ce101
commit 51fa80ef06
No known key found for this signature in database
3 changed files with 159 additions and 156 deletions

View file

@ -1,11 +1,11 @@
// #[cfg(not(any(test, feature = "test-support")))]
#[cfg(not(any(test, feature = "test-support")))]
pub mod prod;
// #[cfg(not(any(test, feature = "test-support")))]
#[cfg(not(any(test, feature = "test-support")))]
pub use prod::*;
// #[cfg(any(test, feature = "test-support"))]
// pub mod test;
#[cfg(any(test, feature = "test-support"))]
pub mod test;
// #[cfg(any(test, feature = "test-support"))]
// pub use test::*;
#[cfg(any(test, feature = "test-support"))]
pub use test::*;

View file

@ -1,4 +1,4 @@
use anyhow::{anyhow, Result};
use anyhow::{anyhow, Result, Context};
use async_trait::async_trait;
use collections::{BTreeMap, HashMap};
use futures::Stream;
@ -364,7 +364,7 @@ impl Room {
let token = token.to_string();
async move {
let server = TestServer::get(&url)?;
server.join_room(token.clone(), this.clone()).await?;
server.join_room(token.clone(), this.clone()).await.context("room join")?;
*this.0.lock().connection.0.borrow_mut() = ConnectionState::Connected { url, token };
Ok(())
}