MCPcopy Create free account
hub / github.com/ACM-VIT/conclave / buildDebugStorageScript

Function buildDebugStorageScript

scripts/probe-low-bandwidth-meet.mjs:1982–1994  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1980 source: buildDebugStorageScript(),
1981 });
1982
1983const installRtcSdpDebug = (cdp) =>
1984 cdp.send("Page.addScriptToEvaluateOnNewDocument", {
1985 source: `(() => {
1986 if (window.__conclaveRtcSdpDebugInstalled) return;
1987 window.__conclaveRtcSdpDebugInstalled = true;
1988 const PeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection;
1989 if (typeof PeerConnection !== "function") return;
1990
1991 const peerConnectionIds = new WeakMap();
1992 const entries = [];
1993 let nextPeerConnectionId = 1;
1994 const getPeerConnectionId = (pc) => {
1995 if (!peerConnectionIds.has(pc)) {
1996 peerConnectionIds.set(pc, nextPeerConnectionId++);
1997 }

Callers 1

installDebugStorageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected