Update README.md
This commit is contained in:
@@ -59,7 +59,7 @@ use livekit::prelude::*;
|
|||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<()> {
|
||||||
let (room, room_events) = Room::connect(&url, &token).await?;
|
let (room, mut room_events) = Room::connect(&url, &token).await?;
|
||||||
|
|
||||||
while let Some(event) = room_events.recv().await {
|
while let Some(event) = room_events.recv().await {
|
||||||
match event {
|
match event {
|
||||||
|
|||||||
Reference in New Issue
Block a user