close

fun close()(source)

The close() method of the RTCPeerConnection interface closes the current peer connection.

MDN Reference