Home > sip.js > SessionDescriptionHandler > peerConnection
The peer connection. Undefined if peer connection has closed.
Signature:
get peerConnection(): RTCPeerConnection | undefined;
While access to the underlying RTCPeerConnection
is provided, note that using methods with modify it may break the operation of this class. In particular, this class depends on exclusive access to the event handler properties. If you need access to the peer connection events, either register for events using addEventListener()
on the RTCPeerConnection
or set the peerConnectionDelegate
on this SessionDescriptionHandler
.