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):
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
You can’t perform that action at this time.
0 commit comments