Skip to content

Commit 0e6291a

Browse files
committed
update example
1 parent 580ab7c commit 0e6291a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/data-streams/data_streams.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ def on_participant_connected(participant: rtc.RemoteParticipant):
5454
)
5555
asyncio.create_task(greetParticipant(participant.identity))
5656

57-
room.local_participant.set_text_stream_handler(
57+
room.set_text_stream_handler(
5858
"chat",
5959
lambda reader, participant_identity: asyncio.create_task(
6060
on_chat_message_received(reader, participant_identity)
6161
),
6262
)
6363

64-
room.local_participant.set_byte_stream_handler(
64+
room.set_byte_stream_handler(
6565
"files",
6666
lambda reader, participant_identity: asyncio.create_task(
6767
on_welcome_image_received(reader, participant_identity)

livekit-rtc/livekit/rtc/participant.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
import aiofiles
2222
from typing import List, Union, Callable, Dict, Awaitable, Optional, Mapping, cast
2323
from abc import abstractmethod, ABC
24-
import logging
25-
2624

2725
from ._ffi_client import FfiClient, FfiHandle
2826
from ._proto import ffi_pb2 as proto_ffi

0 commit comments

Comments
 (0)