Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohaodu committed May 31, 2024
1 parent d9751c4 commit 7d6780d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-chat-x-vue/src/classes/PeerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ export class PeerManager {
}

const callPreRequest = { type: "call_pre_request", video, audio };
let responseReceived = false;
// let responseReceived = false;

// 为数据通道上的响应设置侦听器
const onResponse = (event: any) => {
if (
event.type === "call_pre_response" &&
event.from === this.remotePeerId.value
) {
responseReceived = true;
// responseReceived = true;
this.dataConnect.value?.removeListener("data", onResponse); // Remove the listener once response is received
if (event.accepted) {
// 继续进行媒体设置
Expand Down

0 comments on commit 7d6780d

Please sign in to comment.