createPeerConnection
abstract suspend fun createPeerConnection(config: WebRtcConnectionConfig): WebRtcPeerConnection(source)
Creates a new peer connection with the configured settings.
open suspend fun createPeerConnection(config: WebRtcConnectionConfig.() -> Unit = this.config.defaultConnectionConfig): WebRtcPeerConnection(source)
Creates a new peer connection with the configured settings. If no configuration is provided, the default configuration from WebRtcConfig.defaultConnectionConfig will be used.