File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,14 @@ def _handle_chat_stream(reader, participant_identity):
51
51
active_tasks .append (task )
52
52
task .add_done_callback (lambda _ : active_tasks .remove (task ))
53
53
54
- room .set_text_stream_handler ("chat" , _handle_chat_stream )
54
+ room .register_text_stream_handler ("chat" , _handle_chat_stream )
55
55
56
56
def _handle_welcome_image_stream (reader , participant_identity ):
57
57
task = asyncio .create_task (on_welcome_image_received (reader , participant_identity ))
58
58
active_tasks .append (task )
59
59
task .add_done_callback (lambda _ : active_tasks .remove (task ))
60
60
61
- room .set_byte_stream_handler ("files" , _handle_welcome_image_stream )
61
+ room .register_byte_stream_handler ("files" , _handle_welcome_image_stream )
62
62
63
63
# By default, autosubscribe is enabled. The participant will be subscribed to
64
64
# all published tracks in the room
You can’t perform that action at this time.
0 commit comments