Class RTCDataChannelInit
Provides configuration options for the data channel.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public class RTCDataChannelInit
Fields
id
Specifies a unique 16-bit identifier for the data channel, allowing explicit channel setup during manual negotiation.
Declaration
public int? id
Field Value
Type | Description |
---|---|
int? |
See Also
maxPacketLifeTime
Specifies the maximum number of transmission retries for a message when operating under non-guaranteed delivery conditions.
Declaration
public int? maxPacketLifeTime
Field Value
Type | Description |
---|---|
int? |
Remarks
Cannot be set along with maxRetransmits.
See Also
maxRetransmits
Specifies the maximum number of times the data channel will attempt to resend a message if initial transmission fails under unreliable conditions.
Declaration
public int? maxRetransmits
Field Value
Type | Description |
---|---|
int? |
Remarks
Cannot be set along with maxPacketLifeTime.
See Also
negotiated
Specifies whether the data channel's connection is manually negotiated by the application or automatically handled by WebRTC.
Declaration
public bool? negotiated
Field Value
Type | Description |
---|---|
bool? |
See Also
ordered
Determines whether the data channel ensures the delivery of messages in the order they were sent.
Declaration
public bool? ordered
Field Value
Type | Description |
---|---|
bool? |
See Also
protocol
Specifies the sub protocol being used by the data channel to transmit and process messages.
Declaration
public string protocol
Field Value
Type | Description |
---|---|
string |