From ccd71cfafb55b95a7c133d83ba197fcefb68935f Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Sat, 26 Jul 2025 00:11:36 -0400 Subject: [PATCH] Comment about starting a SmallWebRTCTransport client session --- src/pipecat/runner/cloud.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pipecat/runner/cloud.py b/src/pipecat/runner/cloud.py index f5bdd5a97..e8371c3ba 100644 --- a/src/pipecat/runner/cloud.py +++ b/src/pipecat/runner/cloud.py @@ -296,8 +296,12 @@ def _create_server_app(transport_type: str, host: str = "localhost", proxy: str asyncio.create_task(bot_module.bot(session_args)) return {"room_url": room_url, "token": token} - elif transport_type == "webrtc": - return {"client_url": "/client/"} + # TODO: Should the WebRTC client POST to /connect to start the bot? + # How should this initialization process work? + # Right now, the client connects to `/api/offer` and the bot is started + # automatically when the first offer is received. Do we want this? + # elif transport_type == "webrtc": + # return {"client_url": "/client/"} else: return { "error": f"RTVI connect not supported for {transport_type} transport. Use Daily or WebRTC."