Method CreateDataChannel
CreateDataChannel(string, RTCDataChannelInit)
Creates a new data channel related the remote peer.
Declaration
public RTCDataChannel CreateDataChannel(string label, RTCDataChannelInit options = null)
Parameters
Type | Name | Description |
---|---|---|
string | label | A string for the data channel. This string may be checked by Label. |
RTCDataChannelInit | options | A struct provides configuration options for the data channel. |
Returns
Type | Description |
---|---|
RTCDataChannel | A new data channel. |