createDataChannel

abstract suspend fun createDataChannel(label: String, options: WebRtcDataChannelOptions.() -> Unit = {}): WebRtcDataChannel(source)

Creates a local data channel associated with this peer connection.

Report a problem

Return

The created data channel.

Parameters

label

The data channel label.

options

Configuration block for the data channel.