examples: remove "on_client_closed"

This has been replaced for "on_client_disconnected" in SmallWebRTCTransport to
match other transports and therefore it is not necessary anymore.
This commit is contained in:
Aleix Conchillo Flaqué
2025-05-27 10:19:42 -07:00
parent bf31bce440
commit d476d9ea05
117 changed files with 3 additions and 584 deletions

View File

@@ -161,11 +161,6 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
logger.info(f"Client disconnected")
await task.cancel()
@transport.event_handler("on_client_closed")
async def on_client_closed(transport, client):
logger.info(f"Client closed connection")
await task.cancel()
# Handler for merged audio
@audiobuffer.event_handler("on_audio_data")
async def on_audio_data(buffer, audio, sample_rate, num_channels):