Add WebRTC transport to realtime start (#16960)

Adds WebRTC startup to the experimental app-server
`thread/realtime/start` method with an optional transport enum. The
websocket path remains the default; WebRTC offers create the realtime
session through the shared start flow and emit the answer SDP via
`thread/realtime/sdp`.

---------

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed IbrahimandCodex authored and GitHub committed 2026-04-07 15:43:38 -07:00
1 parent 6c36e7d688
commit fb3dcfde1d
42 files changed
+1570 -81

No files matched your search

+2
View File
@@ -6501,6 +6501,7 @@ impl ChatWidget {
);
}
}
ServerNotification::ThreadRealtimeSdp(_) => {}
ServerNotification::ServerRequestResolved(_)
| ServerNotification::AccountUpdated(_)
| ServerNotification::AccountRateLimitsUpdated(_)
@@ -7020,6 +7021,7 @@ impl ChatWidget {
self.on_realtime_conversation_started(ev);
}
}
EventMsg::RealtimeConversationSdp(_) => {}
EventMsg::RealtimeConversationRealtime(ev) => {
if !from_replay {
self.on_realtime_conversation_realtime(ev);