Skip to content

Commit

Permalink
Fix up examples, reset defaults, clean TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikayla-maki committed Feb 28, 2024
1 parent 632780e commit aee71bb
Show file tree
Hide file tree
Showing 12 changed files with 2,490 additions and 36 deletions.
4 changes: 2 additions & 2 deletions examples/basic_room/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async fn main() {
let (room, mut rx) = Room::connect(&url, &token, RoomOptions::default())
.await
.unwrap();
println!("Connected to room: {} - {}", room.name(), room.sid());
log::info!("Connected to room: {} - {}", room.name(), room.sid());

room.local_participant()
.publish_data(DataPacket {
Expand All @@ -39,6 +39,6 @@ async fn main() {
.unwrap();

while let Some(msg) = rx.recv().await {
println!("Event: {:?}", msg);
log::info!("Event: {:?}", msg);
}
}
216 changes: 199 additions & 17 deletions examples/basic_room_async/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/basic_room_async/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
futures = "0.3.0"
async-std = "1"
env_logger = "0.10"
livekit = { path = "../../livekit", version = "0.3.0", features = ["native-tls"]}
livekit = { path = "../../livekit", version = "0.3.0", default-features = false, features = ["native-tls", "async"]}
livekit-api = { path = "../../livekit-api", version = "0.3.0"}
log = "0.4"

Expand Down
Loading

0 comments on commit aee71bb

Please sign in to comment.