docs.rodeo

MDN Web Docs mirror

RTCPeerConnection

{{APIRef('WebRTC')}} 

The RTCPeerConnection interface represents a WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it’s no longer needed.

{{InheritanceDiagram}} 

Constructor

Instance properties

Also inherits properties from {{DOMxRef("EventTarget")}} .

Static methods

Instance methods

Also inherits methods from {{DOMxRef("EventTarget")}} .

Obsolete methods

Events

Listen to these events using {{domxref("EventTarget.addEventListener", "addEventListener()")}}  or by assigning an event listener to the oneventname property of this interface.

Obsolete events

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN