setConfiguration

fun setConfiguration(configuration: RTCConfiguration = definedExternally)(source)

The setConfiguration() method of the RTCPeerConnection interface sets the current configuration of the connection based on the values included in the specified object. This lets you change the ICE servers used by the connection and which transport policies to use.

MDN Reference