Method CreateDataChannel
CreateDataChannel(string, ref RTCDataChannelInit)
Creates a new data channel related the remote peer.
Declaration
public RTCDataChannel CreateDataChannel(string label, ref RTCDataChannelInit options)
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. |