Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add generate certificate method to peer connection polyfill #209

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions polyfill/RTCPeerConnection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ export default class _RTCPeerConnection extends EventTarget implements RTCPeerCo
setConfiguration(configuration: RTCConfiguration): void;
setLocalDescription(description: RTCSessionDescriptionInit): Promise<void>;
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;

// static methods
static generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
}
4 changes: 4 additions & 0 deletions polyfill/RTCPeerConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import RTCSctpTransport from './RTCSctpTransport.js';
import DOMException from 'node-domexception';

export default class _RTCPeerConnection extends EventTarget {
static async generateCertificate() {
throw new Error('Not implemented');
}

#peerConnection;
#localOffer;
#localAnswer;
Expand Down
Loading