Skip to content

Commit 5aa0b0b

Browse files
committed
fixed calls from 'set' to 'register'
1 parent 59e03c8 commit 5aa0b0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/data-streams/data_streams.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ def _handle_chat_stream(reader, participant_identity):
5151
active_tasks.append(task)
5252
task.add_done_callback(lambda _: active_tasks.remove(task))
5353

54-
room.set_text_stream_handler("chat", _handle_chat_stream)
54+
room.register_text_stream_handler("chat", _handle_chat_stream)
5555

5656
def _handle_welcome_image_stream(reader, participant_identity):
5757
task = asyncio.create_task(on_welcome_image_received(reader, participant_identity))
5858
active_tasks.append(task)
5959
task.add_done_callback(lambda _: active_tasks.remove(task))
6060

61-
room.set_byte_stream_handler("files", _handle_welcome_image_stream)
61+
room.register_byte_stream_handler("files", _handle_welcome_image_stream)
6262

6363
# By default, autosubscribe is enabled. The participant will be subscribed to
6464
# all published tracks in the room

0 commit comments

Comments
 (0)