We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a855e68 commit 40dfca6Copy full SHA for 40dfca6
src/polyfill/RTCPeerConnection.ts
@@ -12,6 +12,7 @@ import RTCCertificate from './RTCCertificate';
12
// extend RTCConfiguration with peerIdentity
13
interface RTCConfiguration extends globalThis.RTCConfiguration {
14
peerIdentity?: string;
15
+ peerConnection?: PeerConnection;
16
}
17
18
export default class RTCPeerConnection extends EventTarget implements globalThis.RTCPeerConnection {
@@ -121,7 +122,6 @@ export default class RTCPeerConnection extends EventTarget implements globalThis
121
122
123
try {
124
const peerIdentity = (config as any)?.peerIdentity ?? `peer-${getRandomString(7)}`;
- // @ts-expect-error fixme
125
this.#peerConnection = config.peerConnection ?? new PeerConnection(peerIdentity,
126
{
127
...config,
0 commit comments