From 33b73df6ec37a648d52495cc3a6437a260c3292a Mon Sep 17 00:00:00 2001 From: filipi87 Date: Tue, 12 May 2026 10:38:15 -0300 Subject: [PATCH] Changing the websocket route to return the same data as PCC. --- src/pipecat/runner/run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pipecat/runner/run.py b/src/pipecat/runner/run.py index 62d2c4f4e..11cc439b1 100644 --- a/src/pipecat/runner/run.py +++ b/src/pipecat/runner/run.py @@ -288,6 +288,7 @@ def _setup_unified_start_route( dailyRoom: str | None dailyToken: str | None wsUrl: str | None + token: str | None @app.post("/start") async def start_agent(request: Request): @@ -422,8 +423,11 @@ def _setup_unified_start_route( elif transport == "websocket": # Plain WebSocket: the bot starts when the client connects to /ws-client. scheme = "wss" if args.host != "localhost" else "ws" + session_id = str(uuid.uuid4()) return StartBotResult( wsUrl=f"{scheme}://{args.host}:{args.port}/ws-client", + sessionId=session_id, + token="mock_token" ) else: