Skip to content

Commit

Permalink
WebRTC no delay(3)
Browse files Browse the repository at this point in the history
  • Loading branch information
davorinrusevljan committed Jan 21, 2025
1 parent 353ac86 commit 93b00aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion notebook/agentchat_realtime_webrtc/static/WebRTC.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export async function init(webSocketUrl) {
export async function ag2Connect(webSocketUrl) {

let ws
const pc = new RTCPeerConnection();
Expand Down
2 changes: 1 addition & 1 deletion notebook/agentchat_realtime_webrtc/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const main = async () => {
const eConnected = document.getElementById("connected")
eConnecting.style.display = "block"
eConnected.style.display = "none"
await init(socketUrl);
await ag2Connect(socketUrl);
eConnecting.style.display = "none"
eConnected.style.display = "block"
}
Expand Down

0 comments on commit 93b00aa

Please sign in to comment.